I have been working on a curses driven program and I am hitting the problem that keyboard input is always blocking.
Probably something simple I have missed about QL.
raw() - is set
nodelay() - is set
wgetch() is still blocking though when docs say it should not be.
Non blocking keyboard in curses
Re: Non blocking keyboard in curses
I seem to distantly recall that a small (1 tick) delay worked better on the QL than nodelay().
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
- XorA
- Site Admin
- Posts: 1631
- Joined: Thu Jun 02, 2011 11:31 am
- Location: Shotts, North Lanarkshire, Scotland, UK
Re: Non blocking keyboard in curses
I’ll give that a go!tofro wrote:I seem to distantly recall that a small (1 tick) delay worked better on the QL than nodelay().
- XorA
- Site Admin
- Posts: 1631
- Joined: Thu Jun 02, 2011 11:31 am
- Location: Shotts, North Lanarkshire, Scotland, UK
Re: Non blocking keyboard in curses
Confirmed halfdelay(1) works as effectively non blocking thanks!