glkterm
glkterm copied to clipboard
curses.h halfdelay() can, in fact, be turned off again.
The code in gtevent.c
says in the comments that you don't think the halfdelay()
function can be disabled once enabled. But in reality it appears it can be done with cbreak()
(or nocbreak()
if you need to use that mode instead). I think that the program starts off in cbreak()
mode, so a call to the function should disable halfdelay()
again. You don't have to keep polling uselessly every 10 seconds.
I have not fixed the code because I am not very skilled with ncurses, but I might attempt it eventually if it starts to bother me. Just filing this report as a heads-up.
BTW, this document looks helpful http://www.tldp.org/HOWTO/html_single/NCURSES-Programming-HOWTO/#HALFDELAY
Thanks. The whole glkterm library is pretty badly out of date, but I'll look at this if I get back to it.