Parse ^? now, our termcap use it and some termcaps from other

systems use it too
This commit is contained in:
Andrey A. Chernov 1995-05-14 22:29:13 +00:00
parent 30fd0561cd
commit 4f5129899a
1 changed files with 5 additions and 1 deletions

View File

@ -810,7 +810,11 @@ cgetstr(buf, cap, str)
bp++;
if (*bp == ':' || *bp == '\0')
break; /* drop unfinished escape */
*mp++ = *bp++ & 037;
if (*bp == '?') {
*mp++ = '\177';
bp++;
} else
*mp++ = *bp++ & 037;
} else if (*bp == '\\') {
bp++;
if (*bp == ':' || *bp == '\0')