Add underline colour attribute checking

This commit is contained in:
Přemysl Eric Janouch 2020-09-13 09:40:19 +02:00
parent 260f33dfb7
commit 15b630ba30
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 7 additions and 0 deletions

View File

@ -271,6 +271,13 @@ int main(int argc, char *argv[]) {
printf("Terminfo: found tmux extension.\n");
printf(CSI "53m" "SGR test.\n" SGR0);
printf("-- Underline colour\n");
const char *Setulc = tigetstr("Setulc");
if (Setulc && Setulc != (char*)-1)
printf("Terminfo: found tmux extension.\n");
printf(CSI "4;58;2;0;255;0m" "SGR test." SGR0 "\n");
printf(CSI "4;58:5:46m" "SGR test." SGR0 "\n");
printf("-- Bar cursor\n");
const char *Ss = tigetstr("Ss");
const char *Se = tigetstr("Se");