aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-17 17:52:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-17 17:52:27 +0000
commit9902a5732f9d3d99955f3c7bf09ebc8db4bd1f82 (patch)
treebfb3f8a5014131babca701f4c4276fd0a1dd8138 /terminal.h
parentRevert "term: new function: term_autowrap()" (diff)
term: try to improve on a performance regression
When support was added for DECOM (absolute/relative row addressing), a small but noticeable (~3.5%) performance regression was introduced. Try to improve the situation by simplifying the relative-to-absolute conversion; only the row needs to be transformed.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index f5d7658f..8e0e83c8 100644
--- a/terminal.h
+++ b/terminal.h
@@ -342,7 +342,7 @@ void term_damage_scroll(
void term_erase(
struct terminal *term, const struct coord *start, const struct coord *end);
-struct coord term_cursor_rel_to_abs(const struct terminal *term, int row, int col);
+int term_row_rel_to_abs(const struct terminal *term, int row);
void term_cursor_home(struct terminal *term);
void term_cursor_to(struct terminal *term, int row, int col);
void term_cursor_left(struct terminal *term, int count);