diff options
| author | Chong Yidong | 2012-06-10 00:44:44 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-06-10 00:44:44 +0800 |
| commit | cd4eb164a9cb5fd4df2290423830471d6086fd1e (patch) | |
| tree | 2c0cd8990ab457f7818a8284e4567c6a3c51a6fd /src/termchar.h | |
| parent | 4f5d2ba15c0dbe248fea1faea9a319435b5fe31a (diff) | |
| download | emacs-cd4eb164a9cb5fd4df2290423830471d6086fd1e.tar.gz emacs-cd4eb164a9cb5fd4df2290423830471d6086fd1e.zip | |
Add support for italic text on ttys.
* src/dispextern.h: Replace unused TTY_CAP_BLINK with TTY_CAP_ITALIC.
(struct face): Remove unused fields tty_dim_p, tty_blinking_p, and
tty_alt_charset_p. Add tty_italic_p.
* src/term.c: Support italics in capable terminals.
(no_color_bit): Replace unused NC_BLINK with NC_ITALIC.
(turn_on_face): Output using TS_enter_italic_mode if available.
Don't handle unused blinking and alt-charset cases.
(turn_off_face): Handle italic case; discard unused tty_blinking_p
and tty_alt_charset_p cases.
(tty_capable_p, init_tty): Support italics.
* src/termchar.h (struct tty_display_info): Add field for italics.
Remove unused blink field.
* src/xfaces.c (tty_supports_face_attributes_p, realize_tty_face):
Handle slant.
Fixes: debbugs:9652
Diffstat (limited to 'src/termchar.h')
| -rw-r--r-- | src/termchar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/termchar.h b/src/termchar.h index d50ee805e03..102fe45350e 100644 --- a/src/termchar.h +++ b/src/termchar.h | |||
| @@ -124,8 +124,8 @@ struct tty_display_info | |||
| 124 | each as vpos and hpos) */ | 124 | each as vpos and hpos) */ |
| 125 | 125 | ||
| 126 | const char *TS_enter_bold_mode; /* "md" -- turn on bold (extra bright mode). */ | 126 | const char *TS_enter_bold_mode; /* "md" -- turn on bold (extra bright mode). */ |
| 127 | const char *TS_enter_italic_mode; /* "ZH" -- turn on italics mode. */ | ||
| 127 | const char *TS_enter_dim_mode; /* "mh" -- turn on half-bright mode. */ | 128 | const char *TS_enter_dim_mode; /* "mh" -- turn on half-bright mode. */ |
| 128 | const char *TS_enter_blink_mode; /* "mb" -- enter blinking mode. */ | ||
| 129 | const char *TS_enter_reverse_mode; /* "mr" -- enter reverse video mode. */ | 129 | const char *TS_enter_reverse_mode; /* "mr" -- enter reverse video mode. */ |
| 130 | const char *TS_exit_underline_mode; /* "us" -- start underlining. */ | 130 | const char *TS_exit_underline_mode; /* "us" -- start underlining. */ |
| 131 | const char *TS_enter_underline_mode; /* "ue" -- end underlining. */ | 131 | const char *TS_enter_underline_mode; /* "ue" -- end underlining. */ |