* [RESEND] Do 'select' should behave like this?
@ 2004-06-30 10:20 DervishD
2004-06-30 15:47 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: DervishD @ 2004-06-30 10:20 UTC (permalink / raw)
To: Zsh Workers
Hi all :)
Try this:
select ITEM in 1 2 3 4 ; do print $ITEM ; clear ; done
Enter '1', for example, and see how the list dissapears. You must
press 'enter' to display it again. Any way of solving this? Should I
set or unset any option? It only happens when issuing the clear or
when the executed command clears the screen (for example, try to use
a viewer instead of 'print').
Thanks a lot in advance :)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RESEND] Do 'select' should behave like this?
2004-06-30 10:20 [RESEND] Do 'select' should behave like this? DervishD
@ 2004-06-30 15:47 ` Bart Schaefer
2004-06-30 19:14 ` DervishD
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2004-06-30 15:47 UTC (permalink / raw)
To: Zsh Workers
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RESEND] Do 'select' should behave like this?
2004-06-30 15:47 ` Bart Schaefer
@ 2004-06-30 19:14 ` DervishD
0 siblings, 0 replies; 3+ messages in thread
From: DervishD @ 2004-06-30 19:14 UTC (permalink / raw)
To: Zsh Users; +Cc: Zsh Workers
Hi Bart :)
* Bart Schaefer <schaefer@brasslantern.com> 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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-06-30 19:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-30 10:20 [RESEND] Do 'select' should behave like this? DervishD
2004-06-30 15:47 ` Bart Schaefer
2004-06-30 19:14 ` DervishD
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).