mirror of https://github.com/gdamore/tcell.git
de4e5c4494
@klamonte opened this issue against gowid, a package that relies on tcell for all its terminal handling: https://github.com/gcla/gowid/issues/24. It describes how a shell inside a terminal widget that the TUI launches freezes when the user hits backspace. The TUI loads a tcell TermInfo struct for the screen-256color terminal and that struct codes KeyBackspace as the single byte 0xff - and so the byte 0xff was sent to the tty. On my Ubuntu 19.04 machine, `infocmp screen-256color` shows `kbs` is `^?` According to https://en.wikipedia.org/wiki/Caret_notation, `^?` should map to 0x7f (127) - "The digraph stands for the control character whose ASCII code is the same as the character's ASCII code with the uppermost bit, in a 7-bit encoding, reversed". This affects both mkinfo.go, the generator of the JSON terminfo database files, and the dynamic terminfo generator. |
||
---|---|---|
.. | ||
dynamic.go |