dvdhrm / kmscon

Linux KMS/DRM based virtual Console Emulator
http://www.freedesktop.org/wiki/Software/kmscon
Other
430 stars 78 forks source link

Backspace ^H vs ^?. How to know #136

Open ArthurSonzogni opened 5 years ago

ArthurSonzogni commented 5 years ago

I am trying to solve: https://github.com/ArthurSonzogni/FTXUI/issues/4

1) When I start kmscon, I end up in the login area. I observe the backspace is replaced by ^H. 2) Then (after login), backspace are interpreted as "erase on character on the left and move the cursor to the left". Great! 3) Then I start some custom C++ code. When Backspace is pressed, it receives 8 ( =^H) instead of 127 (=^?). I tried to use termios, when I access termios::c_cc[VERASE], it returns 127. I expected to get 8, since it is what kmscon is sending.

I am mostly interested in solving 3) Do you have any idea what my C++ program can do to know what kmscon will be sending?

vdmkenny commented 1 month ago

@ArthurSonzogni Having the same issue when running Zellij inside of KMScon. Any idea how to fix it?