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

Home » Public Forums » archive » using GET_KBRD
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
using GET_KBRD [message #8305] Wed, 26 February 1997 00:00 Go to previous message
Walid is currently offline  Walid
Messages: 9
Registered: July 1996
Junior Member
Hello All,

I have what should be a simple problem. The following 3-line program:

REPEAT BEGIN
A = GET_KBRD(0)
PRINT, BYTE(A)
ENDREP UNTIL A EQ 'q'

exits when the user types 'q'. However, remove the print statement,
and the program runs indefinitely regardless of any user input!

Anyone know what's wrong. I'm running IDL 4.0.1 on a PC.
Also, to get around this problem in a large program that I wanted the
option to exit from (ctrl-c doesn't usually work from a PC), I went
ahead and used the print,a--but it took several passes in the program's
loop before the keyboard buffer was read. I also tried to flush,0 the
keyboard buffer to no avail.

Thanks in advance,

Walid
[Message index]
 
Read Message
Read Message
Previous Topic: Gradient of two dimensional field
Next Topic: Re: The intersection of 2 arrays

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

Current Time: Wed Oct 08 19:14:07 PDT 2025

Total time taken to generate the page: 0.00375 seconds