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 #50117] Tue, 12 September 2006 10:01 Go to previous message
Julio[1] is currently offline  Julio[1]
Messages: 52
Registered: May 2005
Member
FÖLDY Lajos escreveu:

> On Tue, 12 Sep 2006, Julio wrote:
>
>> 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?
>>
>> Cheers,
>> Júlio
>>
>
> print, 'Yes (Y) or No (N)?: ' & b=get_kbrd()
>
> but read the warning in the ref. guide.
>
> regards,
> lajos
>
Ok... get_kbrd helped. Thanks for all the comments.
Julio
[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: Fri Oct 10 19:53:38 PDT 2025

Total time taken to generate the page: 0.48374 seconds