Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/lib/vterm.h
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,11 @@ class VTerm {

static CharAttr default_char_attr;
u8 cur_fcolor, cur_bcolor;
s8 cur_underline_color, cur_halfbright_color;
// Not s8: that typedef resolves to plain char, whose signedness is
// implementation-defined. On targets where char is unsigned (ARM,
// AArch64, PowerPC, s390x) the -1 sentinel below reads back as 255 and
// every `!= -1` guard in normal_char_attr() fires unconditionally.
s16 cur_underline_color, cur_halfbright_color;
ScreenBufferType active_buffer = Primary;

// action parameters
Expand Down