comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Reading from the prompt
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Reading from the prompt [message #50119 is a reply to message #50118] Tue, 12 September 2006 09:35 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Julio writes:

> Hello... Here goes a simple question. I'm reading a string from the
> prompt using:
>
> B = ''
> ; Read input from the terminal:
> READ, B, PROMPT='Yes (Y) or No (N)?: '
>
> I need to put Y or N and them press ENTER. Is there a way to read Y or
> N without pressing ENTER?

No. :-)

This is easily done with a widget, however. Have you
considered using a pop-up dialog?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Reading from the prompt
Next Topic: Re: increase the number of major tickmarks in plots

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 01:08:00 PDT 2025

Total time taken to generate the page: 4.07941 seconds