diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-04-30 18:31:47 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-04-30 18:36:16 +0000 |
| commit | 7ce767ab87ca915b2ac4023cc95dbda81fe87abd (patch) | |
| tree | 517f2e52ff5d626429b0f478b927bfb27028348e /terminal.h | |
| parent | Merge branch 'bsu-esu-logging' (diff) | |
config: add ‘beam-thickness’ option
* Rename cursor.style value ‘bar’ to ‘beam’. ‘bar’ remains recognized,
but should eventually be deprecated and then removed.
* Add ‘cursor.beam-thickness’ option, a pt-or-px value specifying the
thickness of the beam cursor. Defaults to 1.5pt.
* Rename (and export) pt_or_px_as_pixels() to
term_pt_or_px_as_pixels()
* Change term_pt_or_px_as_pixels() to round point values instead of
truncating them.
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -212,7 +212,7 @@ enum mouse_reporting { MOUSE_URXVT, /* ?1015h */ }; -enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR }; +enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BEAM }; enum selection_kind { SELECTION_NONE, @@ -615,6 +615,9 @@ bool term_font_size_decrease(struct terminal *term); bool term_font_size_reset(struct terminal *term); bool term_font_dpi_changed(struct terminal *term); void term_font_subpixel_changed(struct terminal *term); +int term_pt_or_px_as_pixels( + const struct terminal *term, const struct pt_or_px *pt_or_px); + void term_window_configured(struct terminal *term); |
