Replies: 3 comments 1 reply
-
grokked? play around with |
Beta Was this translation helpful? Give feedback.
-
regarding signals:
it attempts to reset the terminal, and then propagates the original signal. since we registered this handler with |
Beta Was this translation helpful? Give feedback.
-
Thank you for the explanations. I understand it better but I'll have to dive deeper in all the C world of signals, and libc... Do you think it would be possible to offer a simple way from notcurses to make all interrupt, quit, suspend, and flow control characters pass through uninterpreted, instead of generating a signal? like ncurses raw mode. So that they can be treated as normal key combinations by the user's program. |
Beta Was this translation helpful? Give feedback.
-
Hey @dankamongmen I thought we could try the new discussions.
I'm started playing with input and I found some unexpected behaviour, and I prefer to ask for your input (pun not intended) before hitting my head any further unnecessarily.
NCOPTION_NO_QUIT_SIGHANDLERS
doesn't seem to do anything, notcurses still quits withctrl + c
(and the rest of the signals likectrl+z
also works unimpeded)notcurses_getc_nblock()
doesn't show the following modifiers in the ncinput structure:2.1. the
shift
key ever gets detected.2.2. the
ctrl
key when sendingctrl + j
orctrl + enter
.notcurses_inputready_fd
doesn't seem to be necessary at all.I created a small rust example
full-input
in case that's useful.Beta Was this translation helpful? Give feedback.
All reactions