From 15b630ba304a43d8f841c2e49a445f69048de5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sun, 13 Sep 2020 09:40:19 +0200 Subject: [PATCH] Add underline colour attribute checking --- termtest.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/termtest.c b/termtest.c index a71884e..7eab9fa 100644 --- a/termtest.c +++ b/termtest.c @@ -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");