Sync OpenBSD patchset 184:

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.
This commit is contained in:
Tiago Cunha
2009-07-28 22:37:02 +00:00
parent 2aa4d47312
commit 361801aaaa
5 changed files with 27 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $Id: key-string.c,v 1.20 2009-07-25 08:53:48 tcunha Exp $ */
/* $Id: key-string.c,v 1.21 2009-07-28 22:37:02 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -57,7 +57,7 @@ struct {
{ "PPage", KEYC_PPAGE },
{ "Tab", '\011' },
{ "BTab", KEYC_BTAB },
{ "BSpace", '\177' },
{ "BSpace", KEYC_BSPACE },
/* Arrow keys. */
{ "Up", KEYC_UP },