aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-08-08 15:57:49 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-08-08 15:57:49 +0000
commit06ddd3dcf8ad5685e7120be93681ee666e4689fc (patch)
treeb45e641093de7d4f4ca626500fcd9e0e911149b2 /tmux.h
parent5e01b6d663abc086847c9bec145edeb9cd91530a (diff)
downloadrtmux-06ddd3dcf8ad5685e7120be93681ee666e4689fc.tar.gz
rtmux-06ddd3dcf8ad5685e7120be93681ee666e4689fc.tar.bz2
rtmux-06ddd3dcf8ad5685e7120be93681ee666e4689fc.zip
Add a flags member to the grid_line struct and use it to differentiate lines
wrapped at the screen edge from those terminated by a newline. Then use this when copying to combine wrapped lines together into one.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 82099e8e..44c169ef 100644
--- a/tmux.h
+++ b/tmux.h
@@ -484,6 +484,9 @@ struct mode_key_table {
#define GRID_FLAG_PADDING 0x4
#define GRID_FLAG_UTF8 0x8
+/* Grid line flags. */
+#define GRID_LINE_WRAPPED 0x1
+
/* Grid cell data. */
struct grid_cell {
u_char attr;
@@ -507,6 +510,8 @@ struct grid_line {
u_int utf8size;
struct grid_utf8 *utf8data;
+
+ int flags;
} __packed;
/* Entire grid of cells. */
@@ -1504,7 +1509,7 @@ void screen_write_reverseindex(struct screen_write_ctx *);
void screen_write_scrollregion(struct screen_write_ctx *, u_int, u_int);
void screen_write_insertmode(struct screen_write_ctx *, int);
void screen_write_mousemode(struct screen_write_ctx *, int);
-void screen_write_linefeed(struct screen_write_ctx *);
+void screen_write_linefeed(struct screen_write_ctx *, int);
void screen_write_carriagereturn(struct screen_write_ctx *);
void screen_write_kcursormode(struct screen_write_ctx *, int);
void screen_write_kkeypadmode(struct screen_write_ctx *, int);