aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-05-19 16:08:35 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-05-19 16:08:35 +0000
commit6db7bd6791244fb0ba4bbd58526acae93cf77899 (patch)
tree82a972cb1b46f3878c7ef53ce39d5fd0b8484901 /tmux.h
parent5db59a0d20d45d7dd961acdd0fc56714041cab55 (diff)
downloadrtmux-6db7bd6791244fb0ba4bbd58526acae93cf77899.tar.gz
rtmux-6db7bd6791244fb0ba4bbd58526acae93cf77899.tar.bz2
rtmux-6db7bd6791244fb0ba4bbd58526acae93cf77899.zip
Try to guess if the window is UTF-8 by outputting a three-byte UTF-8 wide character and seeing how much the cursor moves. Currently tries to figure out if this works by some stupid checks on the terminal, these need to be rethought. Also might be better using a width 1 character rather than width 2.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 6e1f7ef7..e12a9e47 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.324 2009-05-19 13:32:55 tcunha Exp $ */
+/* $Id: tmux.h,v 1.325 2009-05-19 16:08:35 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1117,6 +1117,7 @@ void tty_putc(struct tty *, u_char);
void tty_init(struct tty *, char *, char *);
void tty_start_tty(struct tty *);
void tty_stop_tty(struct tty *);
+void tty_detect_utf8(struct tty *);
void tty_set_title(struct tty *, const char *);
void tty_update_mode(struct tty *, int);
void tty_draw_line(