Closed danielk333 closed 3 years ago
I can't reproduce this issue; could you please check with a minimal python program like the one below what your terminal is making of the Home key?
#!/usr/bin/env python
import curses
savedexc = None
result = None
try:
scr = curses.initscr()
curses.noecho()
curses.cbreak()
scr.keypad(True)
result = scr.get_wch()
except Exception as exc:
savedexc = exc
try:
curses.endwin()
except:
pass
print(f"Key was: {result}")
if savedexc is not None:
raise savedexc
Hmmmm, this is strange.
When pressing Home
i get
[basic] danielk@danielk-GE62-6QD:PYTHON$ python ncurses_key_test.py
Key was:
For the End
key I get:
[basic] danielk@danielk-GE62-6QD:PYTHON$ python ncurses_key_test.py
Key was: 385
Any chance you can try this with a different terminal? Or inside/outside tmux?
Wow, in uxrvt
i got 262 for Home
and 360 for End
....
So, st is a problem then? How is tmux doing?
Assuming its my old strange distro+corsair keyboard that causes it
xev
output for home key: