![]() |
libghostty-vt 0.0.0
|
#include <ghostty/vt/style.h>
Data Fields | |
| GhosttyStyleColor | fg_color |
| GhosttyStyleColor | bg_color |
| GhosttyStyleColor | underline_color |
| GhosttyStyleFlags | flags |
| uint16_t | reserved |
Terminal cell style.
The complete visual style of a terminal cell: foreground, background, and underline colors, plus text attributes such as bold and the underline style.
The layout of this struct is fixed. It is 16 bytes on every platform and will not change in future versions, so it does not have a size field and does not need GHOSTTY_INIT_SIZED(). If a future version needs more style attributes, it will add a new type instead of changing this one.
Reserved bits are always zero in a style written by the library. This means two styles from the library can be compared with memcmp().
| GhosttyStyleColor bg_color |
| GhosttyStyleColor fg_color |
| GhosttyStyleFlags flags |
Text attributes and underline style. See GhosttyStyleFlags.
| GhosttyStyleColor underline_color |