glkterm icon indicating copy to clipboard operation
glkterm copied to clipboard

curses.h halfdelay() can, in fact, be turned off again.

Open wyatt8740 opened this issue 7 years ago • 2 comments

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.

wyatt8740 avatar Apr 24 '17 16:04 wyatt8740

BTW, this document looks helpful http://www.tldp.org/HOWTO/html_single/NCURSES-Programming-HOWTO/#HALFDELAY

wyatt8740 avatar Apr 24 '17 16:04 wyatt8740

Thanks. The whole glkterm library is pretty badly out of date, but I'll look at this if I get back to it.

erkyrath avatar Apr 24 '17 23:04 erkyrath