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/dispextern.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/dispextern.h')
| -rw-r--r-- | src/dispextern.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index 979ade70bfc..b877bf9965a 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -1609,15 +1609,12 @@ struct face | |||
| 1609 | unsigned strike_through_color_defaulted_p : 1; | 1609 | unsigned strike_through_color_defaulted_p : 1; |
| 1610 | unsigned box_color_defaulted_p : 1; | 1610 | unsigned box_color_defaulted_p : 1; |
| 1611 | 1611 | ||
| 1612 | /* TTY appearances. Blinking is not yet implemented. Colors are | 1612 | /* TTY appearances. Colors are found in `lface' with empty color |
| 1613 | found in `lface' with empty color string meaning the default | 1613 | string meaning the default color of the TTY. */ |
| 1614 | color of the TTY. */ | ||
| 1615 | unsigned tty_bold_p : 1; | 1614 | unsigned tty_bold_p : 1; |
| 1616 | unsigned tty_dim_p : 1; | 1615 | unsigned tty_italic_p : 1; |
| 1617 | unsigned tty_underline_p : 1; | 1616 | unsigned tty_underline_p : 1; |
| 1618 | unsigned tty_alt_charset_p : 1; | ||
| 1619 | unsigned tty_reverse_p : 1; | 1617 | unsigned tty_reverse_p : 1; |
| 1620 | unsigned tty_blinking_p : 1; | ||
| 1621 | 1618 | ||
| 1622 | /* 1 means that colors of this face may not be freed because they | 1619 | /* 1 means that colors of this face may not be freed because they |
| 1623 | have been copied bitwise from a base face (see | 1620 | have been copied bitwise from a base face (see |
| @@ -2979,8 +2976,7 @@ enum tool_bar_item_image | |||
| 2979 | #define TTY_CAP_UNDERLINE 0x02 | 2976 | #define TTY_CAP_UNDERLINE 0x02 |
| 2980 | #define TTY_CAP_BOLD 0x04 | 2977 | #define TTY_CAP_BOLD 0x04 |
| 2981 | #define TTY_CAP_DIM 0x08 | 2978 | #define TTY_CAP_DIM 0x08 |
| 2982 | #define TTY_CAP_BLINK 0x10 | 2979 | #define TTY_CAP_ITALIC 0x10 |
| 2983 | #define TTY_CAP_ALT_CHARSET 0x20 | ||
| 2984 | 2980 | ||
| 2985 | 2981 | ||
| 2986 | /*********************************************************************** | 2982 | /*********************************************************************** |