Created
February 17, 2018 14:10
-
-
Save andscoop/874ff042a28ca5aaa06426a58aacaf83 to your computer and use it in GitHub Desktop.
fix nice-editor (ne) backspace issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KEY 0x7f BS | |
KEY 0x115 DC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, it's unfortunate that it's ended up that way, but I can understand how it happened. No terminal developer wants to wait until every distro picks up their custom terminfo entry, so they just abuse the
xterm
one. There are countless other problems caused by this, but fortunately text editors don't typically run into them.Probably for every terminal emulator that claims to be
xterm
to start using the same key code. Or at least the ones people still use.The xterm/ncurses maintainer has something like that at https://invisible-island.net/ncurses/tack.html.
I'm at the stage where I just assume that anything not part of the basic common subset of features will be completely messed up by at least one terminal. Unfortunately, people actually use such terminals -- so the best thing you can do is stay within that small set of features and just take a pragmatic approach to things like the backspace issue.