commit | 639fbe03922924b70fca7860845590e8c3aa927a | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Sun Jul 26 21:42:08 2009 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Sun Jul 26 21:42:08 2009 +0000 |
tree | 105603ab6f5b743e0faef50913c3b6ac7e02af3d | |
parent | 55d8c01c339db6dd66ed85ce3da5273632da6ca5 [diff] |
Detect backspace by looking at termios VERASE and translate it into \177 (which matches screen's behaviour if not its termcap/terminfo entry). The terminfo kbs cap is often wrong or missing so it can't be used, and just assuming \177 may be wrong.