diff options
author | ache <ache@FreeBSD.org> | 1995-05-14 22:29:13 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-05-14 22:29:13 +0000 |
commit | 471b2e6d7bbd86f2095a5ff7e55d80a60a39093c (patch) | |
tree | ca7481cfce1567a5d78171ae36edda664eb8013d /lib | |
parent | b6c456d4ddb5cae8aceeb655e46d94a99d682511 (diff) | |
download | FreeBSD-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.c | 6 |
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') |