diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-08-08 15:57:49 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-08-08 15:57:49 +0000 |
commit | 06ddd3dcf8ad5685e7120be93681ee666e4689fc (patch) | |
tree | b45e641093de7d4f4ca626500fcd9e0e911149b2 /input.c | |
parent | 5e01b6d663abc086847c9bec145edeb9cd91530a (diff) | |
download | rtmux-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 'input.c')
-rw-r--r-- | input.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -635,7 +635,7 @@ input_handle_c0_control(u_char ch, struct input_ctx *ictx) case '\0': /* NUL */ break; case '\n': /* LF */ - screen_write_linefeed(&ictx->ctx); + screen_write_linefeed(&ictx->ctx, 0); break; case '\r': /* CR */ screen_write_carriagereturn(&ictx->ctx); @@ -659,7 +659,7 @@ input_handle_c0_control(u_char ch, struct input_ctx *ictx) } while (s->cx < screen_size_x(s) - 1); break; case '\013': /* VT */ - screen_write_linefeed(&ictx->ctx); + screen_write_linefeed(&ictx->ctx, 0); break; case '\016': /* SO */ ictx->cell.attr |= GRID_ATTR_CHARSET; @@ -682,11 +682,11 @@ input_handle_c1_control(u_char ch, struct input_ctx *ictx) switch (ch) { case 'D': /* IND */ - screen_write_linefeed(&ictx->ctx); + screen_write_linefeed(&ictx->ctx, 0); break; case 'E': /* NEL */ screen_write_carriagereturn(&ictx->ctx); - screen_write_linefeed(&ictx->ctx); + screen_write_linefeed(&ictx->ctx, 0); break; case 'H': /* HTS */ if (s->cx < screen_size_x(s)) |