aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-09-14 08:27:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-09-14 08:27:06 +0000
commitf84320b5d66403de662bf7e5413fe5628cd84263 (patch)
tree42edba1ebc74f44ada858d171544bc89fbb4682a /terminal.h
parentMerge branch 'pgo-script' (diff)
parentbox-drawing: braille: prefer increasing spacing over dot width (diff)
Merge branch 'braille'
Closes #702
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h26
1 files changed, 20 insertions, 6 deletions
diff --git a/terminal.h b/terminal.h
index 620678b1..028b4844 100644
--- a/terminal.h
+++ b/terminal.h
@@ -333,12 +333,26 @@ struct terminal {
int16_t font_y_ofs;
enum fcft_subpixel font_subpixel;
- /*
- * 0-159: U+02500+0259F
- * 160-299: U+1FB00-1FB8B
- * 300-301: U+1FB9A-1FB9B
- */
- struct fcft_glyph *box_drawing[302];
+ struct {
+ struct fcft_glyph **box_drawing;
+ struct fcft_glyph **braille;
+ struct fcft_glyph **legacy;
+
+ #define GLYPH_BOX_DRAWING_FIRST 0x2500
+ #define GLYPH_BOX_DRAWING_LAST 0x259F
+ #define GLYPH_BOX_DRAWING_COUNT \
+ (GLYPH_BOX_DRAWING_LAST - GLYPH_BOX_DRAWING_FIRST + 1)
+
+ #define GLYPH_BRAILLE_FIRST 0x2800
+ #define GLYPH_BRAILLE_LAST 0x28FF
+ #define GLYPH_BRAILLE_COUNT \
+ (GLYPH_BRAILLE_LAST - GLYPH_BRAILLE_FIRST + 1)
+
+ #define GLYPH_LEGACY_FIRST 0x1FB00
+ #define GLYPH_LEGACY_LAST 0x1FB9B
+ #define GLYPH_LEGACY_COUNT \
+ (GLYPH_LEGACY_LAST - GLYPH_LEGACY_FIRST + 1)
+ } custom_glyphs;
bool is_sending_paste_data;
ptmx_buffer_list_t ptmx_buffers;