Curses: add support for the palette config option
Depends on CHANGE_COLOR compile-time option. Also allow multiple palette-definitions in the config file.
This commit is contained in:
@@ -1495,6 +1495,15 @@ term_curs_set(int visibility)
|
||||
xputs(nh_VE);
|
||||
}
|
||||
|
||||
#ifdef CHANGE_COLOR
|
||||
void
|
||||
tty_change_color(int color UNUSED, long rgb UNUSED, int reverse UNUSED)
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif /* CHANGE_COLOR */
|
||||
|
||||
|
||||
#ifndef SEP2
|
||||
#define tcfmtstr "\033[38;2;%ld;%ld;%ldm"
|
||||
#ifdef UNIX
|
||||
|
||||
@@ -803,6 +803,14 @@ tty_resume_nhwindows(void)
|
||||
docrt();
|
||||
}
|
||||
|
||||
#ifdef CHANGE_COLOR
|
||||
char *
|
||||
tty_get_color_string(void)
|
||||
{
|
||||
return (char *) 0;
|
||||
}
|
||||
#endif /* CHANGE_COLOR */
|
||||
|
||||
void
|
||||
tty_exit_nhwindows(const char *str)
|
||||
{
|
||||
@@ -3941,6 +3949,14 @@ term_curs_set(int visibility UNUSED)
|
||||
/* nothing */
|
||||
}
|
||||
|
||||
#ifdef CHANGE_COLOR
|
||||
void
|
||||
tty_change_color(int color UNUSED, long rgb UNUSED, int reverse UNUSED)
|
||||
{
|
||||
/* nothing */
|
||||
}
|
||||
#endif /* CHANGE_COLOR */
|
||||
|
||||
#endif /* NO_TERMS */
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user