diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-10-28 22:48:35 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-10-28 22:48:35 +0000 |
commit | 41863470baec86c45858b4b0e7048400a91986bc (patch) | |
tree | 2779c4d04be2af2ec8bb10f47eb2d6ae3802a2f7 /server-client.c | |
parent | c4637da86092a5d68b973e5f4f6201f015692a72 (diff) | |
download | rtmux-41863470baec86c45858b4b0e7048400a91986bc.tar.gz rtmux-41863470baec86c45858b4b0e7048400a91986bc.tar.bz2 rtmux-41863470baec86c45858b4b0e7048400a91986bc.zip |
Sync OpenBSD patchset 446:
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 'server-client.c')
-rw-r--r-- | server-client.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server-client.c b/server-client.c index 62645ac6..e89a8ba8 100644 --- a/server-client.c +++ b/server-client.c @@ -1,4 +1,4 @@ -/* $Id: server-client.c,v 1.5 2009-10-28 22:46:15 tcunha Exp $ */ +/* $Id: server-client.c,v 1.6 2009-10-28 22:48:35 tcunha Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -702,8 +702,6 @@ server_client_msg_identify( c->tty.term_flags |= TERM_256COLOURS; else if (data->flags & IDENTIFY_88COLOURS) c->tty.term_flags |= TERM_88COLOURS; - if (data->flags & IDENTIFY_HASDEFAULTS) - c->tty.term_flags |= TERM_HASDEFAULTS; tty_resize(&c->tty); |