aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-17 08:39:43 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-17 08:39:43 +0000
commitc1088d77ac24f6655d430005711d2515f3f169ec (patch)
tree475681511be530f9dde54570bd64b3df0035b9cb /terminal.c
parentcsi: el/ed/dch/ich/ech: reset 'print_needs_wrap' (lcf) (diff)
term: rename: print_needs_wrap -> lcf (Last Column Flag)
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/terminal.c b/terminal.c
index 98551d3f..707b45f1 100644
--- a/terminal.c
+++ b/terminal.c
@@ -855,7 +855,7 @@ term_reset(struct terminal *term, bool hard)
term->colors.bg = term->colors.default_bg;
for (size_t i = 0; i < 256; i++)
term->colors.table[i] = term->colors.default_table[i];
- term->print_needs_wrap = false;
+ term->lcf = false;
term->cursor = (struct coord){0, 0};
term->saved_cursor = (struct coord){0, 0};
term->alt_saved_cursor = (struct coord){0, 0};
@@ -1024,7 +1024,7 @@ term_cursor_to(struct terminal *term, int row, int col)
assert(row < term->rows);
assert(col < term->cols);
- term->print_needs_wrap = false;
+ term->lcf = false;
term->cursor.col = col;
term->cursor.row = row;
@@ -1045,7 +1045,7 @@ term_cursor_left(struct terminal *term, int count)
int move_amount = min(term->cursor.col, count);
term->cursor.col -= move_amount;
assert(term->cursor.col >= 0);
- term->print_needs_wrap = false;
+ term->lcf = false;
}
void
@@ -1054,7 +1054,7 @@ term_cursor_right(struct terminal *term, int count)
int move_amount = min(term->cols - term->cursor.col - 1, count);
term->cursor.col += move_amount;
assert(term->cursor.col < term->cols);
- term->print_needs_wrap = false;
+ term->lcf = false;
}
void