summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-06-03 16:05:46 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-06-03 16:05:46 +0000
commit7d45e29683119b31179295b3712142ebf8897a0d (patch)
tree28dc49e1fe895cb7d1bd472126b201eaeb534460 /tmux.h
parent41d985ace3189c7375a8f1c2d1d2d028a20cf731 (diff)
Add a UTF-8 aware string length function and make UTF-8 in
status-left/status-right work properly. At the moment any top-bit-set characters are assumed to be UTF-8: a status-utf8 option to configure this will come shortly.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/tmux.h b/tmux.h
index 0c8e5929..fef8394c 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1347,8 +1347,13 @@ void grid_view_delete_cells(struct grid *, u_int, u_int, u_int);
void screen_write_start(
struct screen_write_ctx *, struct window_pane *, struct screen *);
void screen_write_stop(struct screen_write_ctx *);
-void printflike3 screen_write_puts(
- struct screen_write_ctx *, struct grid_cell *, const char *, ...);
+size_t printflike1 screen_write_strlen(const char *, ...);
+void printflike3 screen_write_puts(struct screen_write_ctx *,
+ struct grid_cell *, const char *, ...);
+void printflike4 screen_write_nputs(struct screen_write_ctx *,
+ ssize_t, struct grid_cell *, const char *, ...);
+void screen_write_vnputs(struct screen_write_ctx *,
+ ssize_t, struct grid_cell *, const char *, va_list);
void screen_write_putc(
struct screen_write_ctx *, struct grid_cell *, u_char);
void screen_write_copy(struct screen_write_ctx *,