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

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



    Hi Bart :)

 * Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> dixit:
> >     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.

    OK, I thought that it was a bug, but this makes sense.
 
> > 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

    That will do, Bart, thanks a lot :))))) 

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/



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