diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-11-15 14:02:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-11-15 14:02:33 +0000 |
commit | 1596058a3446eb356830c9ba5a613be2ab3839b9 (patch) | |
tree | dc7924713bbede2a1253d105d28aa40da953040d /usr.bin/tmux/tmux.h | |
parent | c870b9da496f0eefecfb6fddac9cc3d76f65d30e (diff) |
Initial attempt to make use of left and right margins if the terminal
supports them (that is, if it advertises itself as a VT420 - probably
just xterm). These are the vertical equivalent of the scroll region and
allow much faster scrolling of panes that do not take up the full width
of the terminal.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 496a8463e74..54689548c25 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.675 2016/11/04 14:47:38 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.676 2016/11/15 14:02:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1098,6 +1098,9 @@ struct tty { u_int rlower; u_int rupper; + u_int rleft; + u_int rright; + char *termname; struct tty_term *term; @@ -1118,6 +1121,15 @@ struct tty { int flags; int term_flags; + enum { + TTY_VT100, + TTY_VT101, + TTY_VT102, + TTY_VT220, + TTY_VT320, + TTY_VT420, + TTY_UNKNOWN + } term_type; struct mouse_event mouse; int mouse_drag_flag; @@ -1653,6 +1665,7 @@ void tty_attributes(struct tty *, const struct grid_cell *, const struct window_pane *); void tty_reset(struct tty *); void tty_region(struct tty *, u_int, u_int); +void tty_margin(struct tty *, u_int, u_int); void tty_cursor(struct tty *, u_int, u_int); void tty_putcode(struct tty *, enum tty_code_code); void tty_putcode1(struct tty *, enum tty_code_code, int); @@ -1677,6 +1690,7 @@ void tty_draw_line(struct tty *, const struct window_pane *, struct screen *, int tty_open(struct tty *, char **); void tty_close(struct tty *); void tty_free(struct tty *); +void tty_set_type(struct tty *, int); void tty_write(void (*)(struct tty *, const struct tty_ctx *), struct tty_ctx *); void tty_cmd_alignmenttest(struct tty *, const struct tty_ctx *); |