From 260f33dfb788ade8e15d0889818fb8b4d49e5c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?=
Date: Sun, 13 Sep 2020 09:28:54 +0200 Subject: [PATCH] Add overline attribute checking --- termtest.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/termtest.c b/termtest.c index 3d36b79..a71884e 100644 --- a/termtest.c +++ b/termtest.c @@ -265,6 +265,12 @@ int main(int argc, char *argv[]) { printf("%sTerminfo test.%s\n", enter_italics_mode, exit_italics_mode); printf(CSI "3m" "SGR test.\n" SGR0); + printf("-- Overline attribute\n"); + const char *Smol = tigetstr("Smol"); + if (Smol && Smol != (char*)-1) + printf("Terminfo: found tmux extension.\n"); + printf(CSI "53m" "SGR test.\n" SGR0); + printf("-- Bar cursor\n"); const char *Ss = tigetstr("Ss"); const char *Se = tigetstr("Se");