Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [RESEND] Do 'select' should behave like this?



On Wed, 30 Jun 2004, DervishD wrote:

>     select ITEM in 1 2 3 4 ; do print $ITEM ; clear ; done
> 
>     Enter '1', for example, and see how the list dissapears.

Right; "select" only reprints the select list when the user seems to be 
confused about the possible choices.  It has no way of knowing what the
state of the screen is.

> You must press 'enter' to display it again. Any way of solving this?

Not directly with only select.  You can of course do this:

  while some suitable condition
  do
    select ITEM in 1 2 3 4
    do
      a thing that wipes the screen
      break
    done
  done



Messages sorted by: Reverse Date, Date, Thread, Author