mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-23 05:33:57 -04:00
vt: cell now tracks attributes (bold, italic, underline etc)
This commit is contained in:
parent
2a4c08b941
commit
c5b60253a7
4 changed files with 67 additions and 63 deletions
25
terminal.h
25
terminal.h
|
|
@ -4,11 +4,22 @@
|
|||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
struct cell {
|
||||
char c[5];
|
||||
struct attributes {
|
||||
bool bold;
|
||||
bool italic;
|
||||
bool underline;
|
||||
bool strikethrough;
|
||||
bool blink;
|
||||
bool conceal;
|
||||
bool reverse;
|
||||
uint32_t foreground;
|
||||
uint32_t background;
|
||||
};
|
||||
|
||||
struct cell {
|
||||
bool dirty;
|
||||
char c[5];
|
||||
struct attributes attrs;
|
||||
};
|
||||
|
||||
struct grid {
|
||||
|
|
@ -52,16 +63,8 @@ struct vt {
|
|||
size_t idx;
|
||||
size_t left;
|
||||
} utf8;
|
||||
bool bold;
|
||||
struct attributes attrs;
|
||||
bool dim;
|
||||
bool italic;
|
||||
bool underline;
|
||||
bool strikethrough;
|
||||
bool blink;
|
||||
bool conceal;
|
||||
bool reverse;
|
||||
uint32_t foreground;
|
||||
uint32_t background;
|
||||
};
|
||||
|
||||
struct terminal {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue