From e6d35b6aa49ca708f62a289bc7c44ad09f5a393f Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 7 Mar 2009 10:29:06 +0000 Subject: Support for 88 colour terminals. --- tmux.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index 7a5212df..8544f828 100644 --- a/tmux.h +++ b/tmux.h @@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.278 2009-03-07 09:29:54 nicm Exp $ */ +/* $Id: tmux.h,v 1.279 2009-03-07 10:29:06 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -400,7 +400,8 @@ struct msg_identify_data { #define IDENTIFY_UTF8 0x1 #define IDENTIFY_256COLOURS 0x2 -#define IDENTIFY_HASDEFAULTS 0x4 +#define IDENTIFY_88COLOURS 0x4 +#define IDENTIFY_HASDEFAULTS 0x8 int flags; u_int sx; @@ -753,7 +754,8 @@ struct tty_term { #define TERM_HASDEFAULTS 0x1 #define TERM_256COLOURS 0x2 -#define TERM_EARLYWRAP 0x4 +#define TERM_88COLOURS 0x4 +#define TERM_EARLYWRAP 0x8 int flags; SLIST_ENTRY(tty_term) entry; @@ -1353,7 +1355,8 @@ void input_mouse(struct window_pane *, u_char, u_char, u_char); /* colour.c */ const char *colour_tostring(u_char); int colour_fromstring(const char *); -u_char colour_translate256(u_char); +u_char colour_256to16(u_char); +u_char colour_256to88(u_char); /* attributes.c */ const char *attributes_tostring(u_char); -- cgit