diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-08-09 17:32:06 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-08-09 17:32:06 +0000 |
commit | 97eb537f38f732f86a046e6fee9116c55c1ff706 (patch) | |
tree | 708fa32f751b2f0775c97400e30ef74002e1885b /tmux.h | |
parent | 37b0bcd7c15b6dac69ac8cb1c0d9d6a4fd5c54c0 (diff) | |
download | rtmux-97eb537f38f732f86a046e6fee9116c55c1ff706.tar.gz rtmux-97eb537f38f732f86a046e6fee9116c55c1ff706.tar.bz2 rtmux-97eb537f38f732f86a046e6fee9116c55c1ff706.zip |
Sync OpenBSD patchset 227:
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.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.406 2009-08-09 17:28:23 tcunha Exp $ */ +/* $Id: tmux.h,v 1.407 2009-08-09 17:32:06 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -483,6 +483,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; @@ -506,6 +509,8 @@ struct grid_line { u_int utf8size; struct grid_utf8 *utf8data; + + int flags; } __packed; /* Entire grid of cells. */ @@ -1503,7 +1508,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); |