aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-09-11 16:19:22 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-09-11 16:19:22 +0000
commitcb564bb427b9db5b1e48a74e6b818454f7ab0c77 (patch)
treecb4192419ba33d2161c045a3d68ef24758d9d083 /tmux.h
parent3696cce4ae83e27ac757bceaad6a0c9fa27525d4 (diff)
downloadrtmux-cb564bb427b9db5b1e48a74e6b818454f7ab0c77.tar.gz
rtmux-cb564bb427b9db5b1e48a74e6b818454f7ab0c77.tar.bz2
rtmux-cb564bb427b9db5b1e48a74e6b818454f7ab0c77.zip
Use UTF-8 line drawing characters on UTF-8 terminals. Fixes some stupid
terminals (I'm looking at you, putty) which disable the vt100 ACS mode switching sequences in UTF-8 mode. Also on terminals without ACS at all, use ASCII equivalents where obvious.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index 34274b50..257c0816 100644
--- a/tmux.h
+++ b/tmux.h
@@ -972,6 +972,8 @@ struct tty_term {
char *name;
u_int references;
+ char acs[UCHAR_MAX + 1][2];
+
struct tty_code codes[NTTYCODE];
#define TERM_256COLOURS 0x1
@@ -1009,8 +1011,6 @@ struct tty {
struct grid_cell cell;
- u_char acs[UCHAR_MAX + 1];
-
#define TTY_NOCURSOR 0x1
#define TTY_FREEZE 0x2
#define TTY_ESCAPE 0x4
@@ -1372,7 +1372,6 @@ void environ_push(struct environ *);
/* tty.c */
void tty_raw(struct tty *, const char *);
-u_char tty_get_acs(struct tty *, u_char);
void tty_attributes(struct tty *, const struct grid_cell *);
void tty_reset(struct tty *);
void tty_region_pane(struct tty *, const struct tty_ctx *, u_int, u_int);
@@ -1426,6 +1425,9 @@ const char *tty_term_string2(
int tty_term_number(struct tty_term *, enum tty_code_code);
int tty_term_flag(struct tty_term *, enum tty_code_code);
+/* tty-acs.c */
+const char *tty_acs_get(struct tty *, u_char);
+
/* tty-keys.c */
void tty_keys_init(struct tty *);
void tty_keys_free(struct tty *);