aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2020-03-31 07:00:34 +0000
committernicm <nicm>2020-03-31 07:00:34 +0000
commit3bbd66c0137fe95c348ce333ea7eec9507db7659 (patch)
tree29dc3cae06502a4e2d2e3e153f383cdb7a4c16cc /tmux.h
parenteedf059d00365efd763cb9d99835c91d31320956 (diff)
downloadrtmux-3bbd66c0137fe95c348ce333ea7eec9507db7659.tar.gz
rtmux-3bbd66c0137fe95c348ce333ea7eec9507db7659.tar.bz2
rtmux-3bbd66c0137fe95c348ce333ea7eec9507db7659.zip
Move alternate screen into the screen rather than the pane.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/tmux.h b/tmux.h
index e40dfe34..2e6ef0c1 100644
--- a/tmux.h
+++ b/tmux.h
@@ -754,8 +754,12 @@ struct screen {
int mode;
- bitstr_t *tabs;
+ u_int saved_cx;
+ u_int saved_cy;
+ struct grid *saved_grid;
+ struct grid_cell saved_cell;
+ bitstr_t *tabs;
struct screen_sel *sel;
};
@@ -917,12 +921,6 @@ struct window_pane {
struct screen status_screen;
size_t status_size;
- /* Saved in alternative screen mode. */
- u_int saved_cx;
- u_int saved_cy;
- struct grid *saved_grid;
- struct grid_cell saved_cell;
-
TAILQ_HEAD (, window_mode_entry) modes;
struct event modetimer;
time_t modelast;
@@ -2296,7 +2294,7 @@ void recalculate_size(struct window *);
void recalculate_sizes(void);
/* input.c */
-struct input_ctx *input_init(struct window_pane *);
+struct input_ctx *input_init(struct window_pane *, struct bufferevent *);
void input_free(struct input_ctx *);
void input_reset(struct input_ctx *, int);
struct evbuffer *input_pending(struct input_ctx *);
@@ -2334,6 +2332,7 @@ struct grid *grid_create(u_int, u_int, u_int);
void grid_destroy(struct grid *);
int grid_compare(struct grid *, struct grid *);
void grid_collect_history(struct grid *);
+void grid_remove_history(struct grid *, u_int );
void grid_scroll_history(struct grid *, u_int);
void grid_scroll_history_region(struct grid *, u_int, u_int, u_int);
void grid_clear_history(struct grid *);
@@ -2458,6 +2457,9 @@ void screen_hide_selection(struct screen *);
int screen_check_selection(struct screen *, u_int, u_int);
void screen_select_cell(struct screen *, struct grid_cell *,
const struct grid_cell *);
+void screen_alternate_on(struct screen *, struct grid_cell *, int);
+void screen_alternate_off(struct screen *, struct grid_cell *, int);
+
/* window.c */
extern struct windows windows;