initish - this is broken

This commit is contained in:
thad-w541
2025-10-27 08:44:46 -05:00
parent 6e97047474
commit ccfe9f23a3
6 changed files with 937 additions and 31 deletions

22
st.c
View File

@@ -2198,6 +2198,28 @@ tstrsequence(uchar c)
term.esc |= ESC_STR;
}
void
tupdatebgcolor(int oldbg, int newbg)
{
for (int y = 0; y < term.row; y++) {
for (int x = 0; x < term.col; x++) {
if (term.line[y][x].bg == oldbg)
term.line[y][x].bg = newbg;
}
}
}
void
tupdatefgcolor(int oldfg, int newfg)
{
for (int y = 0; y < term.row; y++) {
for (int x = 0; x < term.col; x++) {
if (term.line[y][x].fg == oldfg)
term.line[y][x].fg = newfg;
}
}
}
void
tcontrolcode(uchar ascii)
{