put wintty.c and termcap.c logic to previous

This commit is contained in:
nhmall
2024-03-25 09:38:54 -04:00
parent dc7df7c407
commit 7f2af9698f
5 changed files with 45 additions and 69 deletions

View File

@@ -378,12 +378,7 @@ term_start_bgcolor(int bgcolor)
}
void
term_start_extracolor(uint32 nhcolor UNUSED)
{
}
void
term_start_256color(int idx UNUSED)
term_start_extracolor(uint32 nhcolor UNUSED, uint16 color256idx UNUSED)
{
}

View File

@@ -1452,12 +1452,13 @@ g_pututf8(uint8 *sequence)
}
void
term_start_extracolor(uint32 nhcolor)
term_start_extracolor(uint32 nhcolor, uint16 color256idx)
{
#ifdef VIRTUAL_TERMINAL_SEQUENCES
if ((nhcolor & NH_BASIC_COLOR) == 0) {
console.color24 = COLORVAL(nhcolor); /* color 0 has bit 0x1000000 set */
console.current_colorflags = 0;
console.color256idx = color256idx;
} else {
#endif
/* NH_BASIC_COLOR */
@@ -1471,7 +1472,6 @@ term_start_extracolor(uint32 nhcolor)
void term_start_256color(int idx)
{
console.color256idx = idx;
}
void