bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

calling halfdelay() unmasks ISIG -- is that intentional?


From: Benno Schulenberg
Subject: calling halfdelay() unmasks ISIG -- is that intentional?
Date: Wed, 27 Mar 2024 11:39:23 +0100
User-agent: Mozilla Thunderbird


Hi Thomas,

In nano, halfdelay() is used in order to time the dropping of a
highlight or the wiping of a feedback message.  But after calling
halfdelay(), the ISIG flag needs to be masked anew for a possible
^C to be registered as a keystroke.

https://git.savannah.gnu.org/cgit/nano.git/tree/src/winio.c?id=f4754bfb5a1f82158aa9119bdaa2cdb8b3bbf627#n214

In the man page for halfdelay() and friends it says that
half-delay mode is similar to cbreak mode, and for cbreak
it says that "interrupt and flow control characters are
unaffected".  So I would have expected halfdelay() to do
nothing with ISIG.  Am I reading this wrong?


Benno

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]