diff options
| author | Richard M. Stallman | 1994-12-17 12:20:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-12-17 12:20:46 +0000 |
| commit | d80bd4a0297223d276772179d1b787928cfd26cc (patch) | |
| tree | 96d100c9b96caa7b415e8ab6d7b93dc71ef45b0d /src | |
| parent | 396134d7a30fb9cef4ccd4e07d38681b84dc0821 (diff) | |
| download | emacs-d80bd4a0297223d276772179d1b787928cfd26cc.tar.gz emacs-d80bd4a0297223d276772179d1b787928cfd26cc.zip | |
(tgetst1): Let ^? stand for DEL character.
Diffstat (limited to 'src')
| -rw-r--r-- | src/termcap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/termcap.c b/src/termcap.c index 9462122677e..bcd1ece8cfd 100644 --- a/src/termcap.c +++ b/src/termcap.c | |||
| @@ -219,7 +219,13 @@ tgetst1 (ptr, area) | |||
| 219 | while ((c = *p++) && c != ':' && c != '\n') | 219 | while ((c = *p++) && c != ':' && c != '\n') |
| 220 | { | 220 | { |
| 221 | if (c == '^') | 221 | if (c == '^') |
| 222 | c = *p++ & 037; | 222 | { |
| 223 | c = *p++; | ||
| 224 | if (c == '?') | ||
| 225 | c = 0177; | ||
| 226 | else | ||
| 227 | c &= 037; | ||
| 228 | } | ||
| 223 | else if (c == '\\') | 229 | else if (c == '\\') |
| 224 | { | 230 | { |
| 225 | c = *p++; | 231 | c = *p++; |