From 963b266cce1cbb81a88fba2175f2d70be86559e4 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 17 Jun 2019 20:53:05 +0200 Subject: 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. --- terminal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'terminal.h') 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; -- cgit v1.3