summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index fea65a71754..6264ace2c87 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.24 2009/07/12 23:46:49 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.25 2009/07/13 10:43:52 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -443,6 +443,9 @@ struct grid_utf8 {
/* Entire grid of cells. */
struct grid {
+ int flags;
+#define GRID_HISTORY 0x1 /* scroll lines into history */
+
u_int sx;
u_int sy;
@@ -614,6 +617,11 @@ struct window_pane {
struct screen *screen;
struct screen base;
+ /* Saved in alternative screen mode. */
+ u_int saved_cx;
+ u_int saved_cy;
+ struct grid *saved_grid;
+
const struct window_mode *mode;
void *modedata;
@@ -1328,6 +1336,8 @@ void grid_clear_lines(struct grid *, u_int, u_int);
void grid_move_lines(struct grid *, u_int, u_int, u_int);
void grid_move_cells(struct grid *, u_int, u_int, u_int, u_int);
char *grid_string_cells(struct grid *, u_int, u_int, u_int);
+void grid_duplicate_lines(
+ struct grid *, u_int, struct grid *, u_int, u_int);
/* grid-view.c */
const struct grid_cell *grid_view_peek_cell(struct grid *, u_int, u_int);