From 89cca2a5d1015670ee2fd335c7b38e8aabdaed44 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 8 Feb 2020 14:09:06 +0100 Subject: term: add term_font_size_{increase,decrease}() --- terminal.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index cf691f5e..e98b14c1 100644 --- a/terminal.h +++ b/terminal.h @@ -175,11 +175,18 @@ struct ptmx_buffer { struct terminal { struct fdm *fdm; + const struct config *conf; pid_t slave; int ptmx; bool quit; + struct grid normal; + struct grid alt; + struct grid *grid; + + struct font *fonts[4]; + tll(struct ptmx_buffer) ptmx_buffer; enum cursor_keys cursor_keys_mode; @@ -277,12 +284,6 @@ struct terminal { size_t match_len; } search; - struct grid normal; - struct grid alt; - struct grid *grid; - - struct font *fonts[4]; - struct { bool esc_prefix; bool eight_bit; @@ -362,6 +363,9 @@ int term_destroy(struct terminal *term); void term_reset(struct terminal *term, bool hard); bool term_to_slave(struct terminal *term, const void *data, size_t len); +void term_font_size_increase(struct terminal *term); +void term_font_size_decrease(struct terminal *term); + void term_damage_rows(struct terminal *term, int start, int end); void term_damage_rows_in_view(struct terminal *term, int start, int end); -- cgit v1.3