aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Möllmann2025-03-07 09:35:20 +0100
committerGerd Möllmann2025-03-07 21:30:11 +0100
commit9277b037938b79e13a26c30ec0d2be30cfafd32b (patch)
treee39361627d871145d5d1c818ce29d61859a56027 /src
parentae4671a7abb279aa9f3a9600028bdc85aff27c93 (diff)
downloademacs-9277b037938b79e13a26c30ec0d2be30cfafd32b.tar.gz
emacs-9277b037938b79e13a26c30ec0d2be30cfafd32b.zip
Fix tty underline capability check (bug#75024)
* src/dispextern.h (TTY_CAP_UNDERLINE_STYLED): Fix. Also make this an enum.
Diffstat (limited to 'src')
-rw-r--r--src/dispextern.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index 1b383164752..bd48005b83f 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -3482,13 +3482,16 @@ enum tool_bar_item_image
3482 capabilities being queried for when calling `tty_capable_p' (which 3482 capabilities being queried for when calling `tty_capable_p' (which
3483 returns true if the terminal supports all of them). */ 3483 returns true if the terminal supports all of them). */
3484 3484
3485#define TTY_CAP_INVERSE 0x01 3485enum
3486#define TTY_CAP_UNDERLINE 0x02 3486{
3487#define TTY_CAP_BOLD 0x04 3487 TTY_CAP_INVERSE = 1 << 1,
3488#define TTY_CAP_DIM 0x08 3488 TTY_CAP_UNDERLINE = 1 << 2,
3489#define TTY_CAP_ITALIC 0x10 3489 TTY_CAP_BOLD = 1 << 3,
3490#define TTY_CAP_STRIKE_THROUGH 0x20 3490 TTY_CAP_DIM = 1 << 4,
3491#define TTY_CAP_UNDERLINE_STYLED (0x32 & TTY_CAP_UNDERLINE) 3491 TTY_CAP_ITALIC = 1 << 5,
3492 TTY_CAP_STRIKE_THROUGH = 1 << 6,
3493 TTY_CAP_UNDERLINE_STYLED = 1 << 7
3494};
3492 3495
3493 3496
3494/*********************************************************************** 3497/***********************************************************************