aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-25 21:11:21 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-25 21:11:21 +0000
commit3a7636ff0f3eed214a847edbfb3bd8007128d49a (patch)
tree3ccaae348cdce4f85a1b71b6cd34c71b53ff100c /tmux.h
parent5bed597e619e4b749c68273d45441406cbab16a9 (diff)
downloadrtmux-3a7636ff0f3eed214a847edbfb3bd8007128d49a.tar.gz
rtmux-3a7636ff0f3eed214a847edbfb3bd8007128d49a.tar.bz2
rtmux-3a7636ff0f3eed214a847edbfb3bd8007128d49a.zip
Remove the -d flag to tmux and just use op/AX to detect default colours.
Irritatingly, although op can be used to tell if a terminal supports default colours, it can't be used to set them because in some terminfo descriptions it resets attributes as a side-effect (acts as sgr0) and in others it doesn't, so it is not possible to determine reliably what the terminal state will be afterwards. So if AX is missing and op is present, tmux just sends sgr0. Anyone using -d for a terminal who finds they actually needed it can replace it using terminal-overrides, but please let me know as it is probably an omission from terminfo.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/tmux.h b/tmux.h
index 42badd33..430470d4 100644
--- a/tmux.h
+++ b/tmux.h
@@ -346,7 +346,6 @@ struct msg_identify_data {
#define IDENTIFY_UTF8 0x1
#define IDENTIFY_256COLOURS 0x2
#define IDENTIFY_88COLOURS 0x4
-#define IDENTIFY_HASDEFAULTS 0x8
int flags;
};
@@ -908,10 +907,9 @@ struct tty_term {
struct tty_code codes[NTTYCODE];
-#define TERM_HASDEFAULTS 0x1
-#define TERM_256COLOURS 0x2
-#define TERM_88COLOURS 0x4
-#define TERM_EARLYWRAP 0x8
+#define TERM_256COLOURS 0x1
+#define TERM_88COLOURS 0x2
+#define TERM_EARLYWRAP 0x4
int flags;
SLIST_ENTRY(tty_term) entry;