aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-17 18:53:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-17 18:53:05 +0000
commit963b266cce1cbb81a88fba2175f2d70be86559e4 (patch)
tree43526162833f2d0413f46c8b732119ef400b9063 /terminal.h
parentwip: vt parsing: break out grid operating functions (diff)
vt: handle cursor-at-right-edge
When printing to the right-most-cell, don't advance the cursor. Instead, set a flag that indicates that the *next* print should line-wrap.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index bc0bca56..e6a2e1f2 100644
--- a/terminal.h
+++ b/terminal.h
@@ -29,6 +29,7 @@ struct grid {
int cell_height;
int cursor;
+ bool print_needs_wrap;
struct cell *cells;
uint32_t foreground;