summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-05-14 22:29:13 +0000
committerache <ache@FreeBSD.org>1995-05-14 22:29:13 +0000
commit471b2e6d7bbd86f2095a5ff7e55d80a60a39093c (patch)
treeca7481cfce1567a5d78171ae36edda664eb8013d /lib
parentb6c456d4ddb5cae8aceeb655e46d94a99d682511 (diff)
downloadFreeBSD-src-471b2e6d7bbd86f2095a5ff7e55d80a60a39093c.zip
FreeBSD-src-471b2e6d7bbd86f2095a5ff7e55d80a60a39093c.tar.gz
Parse ^? now, our termcap use it and some termcaps from other
systems use it too
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/getcap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/gen/getcap.c b/lib/libc/gen/getcap.c
index 2a81a35..f883ec4 100644
--- a/lib/libc/gen/getcap.c
+++ b/lib/libc/gen/getcap.c
@@ -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')
OpenPOWER on IntegriCloud