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

Home » Public Forums » archive » Having READ ingest the input without waiting for return key to be hit?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Having READ ingest the input without waiting for return key to be hit? [message #88625] Tue, 20 May 2014 11:52 Go to next message
Jared Espley is currently offline  Jared Espley
Messages: 17
Registered: February 2006
Junior Member
I'm trying to have:

letter=''
READ, PROMPT="Enter a letter", letter

finish waiting for input after the first letter is entered without having to have the user hit return. I tried searching around for solutions but my google-fu/index-reading skills were not up to the task. Thanks for any ideas!

Jared
Re: Having READ ingest the input without waiting for return key to be hit? [message #88626 is a reply to message #88625] Tue, 20 May 2014 12:29 Go to previous messageGo to next message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
Hi Jared,

try: letter=get_kbrd()

Cheers, Heinz
Re: Having READ ingest the input without waiting for return key to be hit? [message #88649 is a reply to message #88626] Fri, 23 May 2014 13:54 Go to previous messageGo to next message
Jared Espley is currently offline  Jared Espley
Messages: 17
Registered: February 2006
Junior Member
Perfect. Thanks!
Re: Having READ ingest the input without waiting for return key to be hit? [message #88651 is a reply to message #88626] Sun, 25 May 2014 03:45 Go to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Note that this works well from the commands line, but not reliably in the IDL Workbench (see documentation). Had to find out the hard way... Haje

On Tuesday, May 20, 2014 3:29:19 PM UTC-4, Heinz Stege wrote:
> Hi Jared,
>
>
>
> try: letter=get_kbrd()
>
>
>
> Cheers, Heinz
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Bug in IDL or, may be in my head ?
Next Topic: text inversion when inverting axis

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

Current Time: Wed Oct 08 13:38:02 PDT 2025

Total time taken to generate the page: 0.00722 seconds