aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2018-10-18 07:57:57 +0000
committernicm <nicm>2018-10-18 07:57:57 +0000
commitbc0e527f32642cc9eb2354d1bdc033ab6beca33b (patch)
treea6b154e707a0fad14f57ba8940f76cba024e0330 /tmux.h
parentf7c85f3ed8f151501fb72a1c18a48d126d89c83c (diff)
downloadrtmux-bc0e527f32642cc9eb2354d1bdc033ab6beca33b.tar.gz
rtmux-bc0e527f32642cc9eb2354d1bdc033ab6beca33b.tar.bz2
rtmux-bc0e527f32642cc9eb2354d1bdc033ab6beca33b.zip
Support for extended underline styles on terminals which offer them,
enabled by adding the Smulx capability with terminal-overrides (add something like ',vte*:Smulx=\E[4\:%p1%dm'). GitHub issue 1492.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index a6770e52..7b451ada 100644
--- a/tmux.h
+++ b/tmux.h
@@ -421,6 +421,7 @@ enum tty_code_code {
TTYC_SMCUP,
TTYC_SMKX,
TTYC_SMSO,
+ TTYC_SMULX,
TTYC_SMUL,
TTYC_SMXX,
TTYC_SS,
@@ -546,6 +547,18 @@ enum utf8_state {
#define GRID_ATTR_ITALICS 0x40
#define GRID_ATTR_CHARSET 0x80 /* alternative character set */
#define GRID_ATTR_STRIKETHROUGH 0x100
+#define GRID_ATTR_UNDERSCORE_2 0x200
+#define GRID_ATTR_UNDERSCORE_3 0x400
+#define GRID_ATTR_UNDERSCORE_4 0x800
+#define GRID_ATTR_UNDERSCORE_5 0x1000
+
+/* All underscore attributes. */
+#define GRID_ATTR_ALL_UNDERSCORE \
+ (GRID_ATTR_UNDERSCORE| \
+ GRID_ATTR_UNDERSCORE_2| \
+ GRID_ATTR_UNDERSCORE_3| \
+ GRID_ATTR_UNDERSCORE_4| \
+ GRID_ATTR_UNDERSCORE_5)
/* Grid flags. */
#define GRID_FLAG_FG256 0x1