changeset 10186:af0b61d21a8f

(tgetst1): Let ^? stand for DEL character.
author Richard M. Stallman <rms@gnu.org>
date Sat, 17 Dec 1994 12:20:46 +0000
parents 5f69627d9466
children a3b8bfad0a75
files src/termcap.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/termcap.c	Sat Dec 17 00:51:30 1994 +0000
+++ b/src/termcap.c	Sat Dec 17 12:20:46 1994 +0000
@@ -219,7 +219,13 @@
   while ((c = *p++) && c != ':' && c != '\n')
     {
       if (c == '^')
-	c = *p++ & 037;
+	{
+	  c = *p++;
+	  if (c == '?')
+	    c = 0177;
+	  else
+	    c &= 037;
+	}
       else if (c == '\\')
 	{
 	  c = *p++;