aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-14 16:49:08 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-14 16:49:08 +0100
commit31621036ad38ef3a2d88da838eb021430ea3c944 (patch)
treed1506a2d621f6a0c65a81f14cf6ba411ed3bb5b9 /tmux.h
parent97c8374855c216a645d558e5d56212e6c002cd72 (diff)
downloadrtmux-31621036ad38ef3a2d88da838eb021430ea3c944.tar.gz
rtmux-31621036ad38ef3a2d88da838eb021430ea3c944.tar.bz2
rtmux-31621036ad38ef3a2d88da838eb021430ea3c944.zip
Add an option to set the pane border lines style from a choice of single lines
(ACS or UTF-8), double or heavy (UTF-8), simple (plain ASCII) or number (the pane numbers). Lines that won't work on a non-UTF-8 terminal are translated back into ACS when they are output.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 99600f37..4df79bd5 100644
--- a/tmux.h
+++ b/tmux.h
@@ -822,6 +822,7 @@ struct screen_redraw_ctx {
int statustop;
int pane_status;
+ int pane_lines;
u_int sx;
u_int sy;
@@ -1052,6 +1053,13 @@ TAILQ_HEAD(winlink_stack, winlink);
#define PANE_STATUS_TOP 1
#define PANE_STATUS_BOTTOM 2
+/* Pane border lines option. */
+#define PANE_LINES_SINGLE 0
+#define PANE_LINES_DOUBLE 1
+#define PANE_LINES_HEAVY 2
+#define PANE_LINES_SIMPLE 3
+#define PANE_LINES_NUMBER 4
+
/* Layout direction. */
enum layout_type {
LAYOUT_LEFTRIGHT,
@@ -2032,6 +2040,8 @@ void tty_putcode_ptr2(struct tty *, enum tty_code_code, const void *,
void tty_puts(struct tty *, const char *);
void tty_putc(struct tty *, u_char);
void tty_putn(struct tty *, const void *, size_t, u_int);
+void tty_cell(struct tty *, const struct grid_cell *,
+ const struct grid_cell *, int *);
int tty_init(struct tty *, struct client *, int);
void tty_resize(struct tty *);
void tty_set_size(struct tty *, u_int, u_int, u_int, u_int);
@@ -2105,6 +2115,7 @@ void tty_default_features(int *, const char *, u_int);
/* tty-acs.c */
int tty_acs_needed(struct tty *);
const char *tty_acs_get(struct tty *, u_char);
+int tty_acs_reverse_get(struct tty *, const char *, size_t);
/* tty-keys.c */
void tty_keys_build(struct tty *);