I'm looking for a way to see if there is is any information on a port without blocking or incrementing the buffer position. I tried using "peek-char" but it seems it's blocking. What should I use in this situation?
Thanks, -Sean Chapel
Hi.
I tried using "peek-char" but it seems it's blocking. What should I use in this situation?
I'm pretty sure you're looking for INPUT-PORT-TIMEOUT-SET! http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php?title=Documentation:Pr...
Cheers,
P!
P!,
Thanks. I did see that function but it's not quite what I was looking for but it should work. I would have to set the timeout to 0 so it returns instantly. Something like c's poll function would be a better fit.
-Sean Chapel
2010/12/28 Adrien "Pied" Piérard axioplase@gmail.com:
Hi.
I tried using "peek-char" but it seems it's blocking. What should I use in this situation?
I'm pretty sure you're looking for INPUT-PORT-TIMEOUT-SET! http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php?title=Documentation:Pr...
Cheers,
P!
Français, English, 日本語, 한국어