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:
parent
6d02539162
commit
69d750b6ed
|
@ -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 =
|
||||||
|
|
Loading…
Reference in a new issue