Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ArthurSonzogni opened this issue Jul 7, 2019 · 1 comment
Open

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

ArthurSonzogni opened this issue Jul 7, 2019 · 1 comment

Comments

@ArthurSonzogni
Copy link

ArthurSonzogni commented Jul 7, 2019

I am trying to solve:
ArthurSonzogni/FTXUI#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
Copy link

vdmkenny commented Jun 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants