fixing return key

When pressing return in `nano` the terminal received an `<CTRL>+J` instead of
the return key. `<CTRL>+J` justifies the text. But is (confusingly) actually
the key for a line feed as well? Terminal programming is not easy …
This commit is contained in:
Christian Burger 2022-04-07 00:28:37 +02:00
parent 6d02539162
commit 69d750b6ed

View file

@ -39,7 +39,11 @@ namespace krikkel::NCursesPtyWindow
vterm_screen_set_callbacks(pseudoTerminalScreen, &screenCallbacks, this); vterm_screen_set_callbacks(pseudoTerminalScreen, &screenCallbacks, this);
// the terminal is doing most of the work // the terminal is doing most of the work
//raw(); — cbreak might suffice
//noecho(); — already set
//nodelay(true); — @todo needs some reprogramming
keypad(false); keypad(false);
nonl();
/// @todo block all signals, this thread does not handle any /// @todo block all signals, this thread does not handle any
readPtyClientThread = readPtyClientThread =