diff options
| author | Eli Zaretskii | 2023-04-16 09:19:15 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-04-16 09:19:15 +0300 |
| commit | 9686b015a0d71d08828afb0cfe6e477bbc4909ae (patch) | |
| tree | a599719c8e969c23f9bf2418af446582f03c2865 /src/term.c | |
| parent | 39035fbfc5f6dfa66c9ba14f61a8d1c751d847c0 (diff) | |
| download | emacs-9686b015a0d71d08828afb0cfe6e477bbc4909ae.tar.gz emacs-9686b015a0d71d08828afb0cfe6e477bbc4909ae.zip | |
Fix strike-through attribute support on TTY frames
* src/term.c (init_tty): Fix setting the strike-through capability
with "smxx". (Bug#62265)
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index d881dee39fe..8a16ce4e33f 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -4163,7 +4163,15 @@ use the Bourne shell command 'TERM=...; export TERM' (C-shell:\n\ | |||
| 4163 | tty->TS_enter_alt_charset_mode = tgetstr ("as", address); | 4163 | tty->TS_enter_alt_charset_mode = tgetstr ("as", address); |
| 4164 | tty->TS_exit_alt_charset_mode = tgetstr ("ae", address); | 4164 | tty->TS_exit_alt_charset_mode = tgetstr ("ae", address); |
| 4165 | tty->TS_exit_attribute_mode = tgetstr ("me", address); | 4165 | tty->TS_exit_attribute_mode = tgetstr ("me", address); |
| 4166 | #ifdef TERMINFO | ||
| 4167 | tty->TS_enter_strike_through_mode = tigetstr ("smxx", address); | ||
| 4168 | if (tty->TS_enter_strike_through_mode == (char *) (intptr_t) -1) | ||
| 4169 | tty->TS_enter_strike_through_mode = NULL; | ||
| 4170 | #else | ||
| 4171 | /* FIXME: Is calling tgetstr here for non-terminfo case correct, | ||
| 4172 | even though "smxx" is more than 2 characters? */ | ||
| 4166 | tty->TS_enter_strike_through_mode = tgetstr ("smxx", address); | 4173 | tty->TS_enter_strike_through_mode = tgetstr ("smxx", address); |
| 4174 | #endif | ||
| 4167 | 4175 | ||
| 4168 | MultiUp (tty) = tgetstr ("UP", address); | 4176 | MultiUp (tty) = tgetstr ("UP", address); |
| 4169 | MultiDown (tty) = tgetstr ("DO", address); | 4177 | MultiDown (tty) = tgetstr ("DO", address); |