From 957140cb7878ce353c812cf7ea8ba9d46a942412 Mon Sep 17 00:00:00 2001 From: Oskari Pirhonen Date: Tue, 20 Feb 2024 22:52:33 -0600 Subject: Touch up docs/comments Remove the mention of linking with libtermcap from einfo(3), and fix some comments in libeinfo.c to more accurately reflect the new situation. --- src/libeinfo/libeinfo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libeinfo/libeinfo.c') diff --git a/src/libeinfo/libeinfo.c b/src/libeinfo/libeinfo.c index 7e86091e..1d2427aa 100644 --- a/src/libeinfo/libeinfo.c +++ b/src/libeinfo/libeinfo.c @@ -50,8 +50,7 @@ #define HILITE 6 #define BRACKET 4 -/* We fallback to these escape codes if termcap isn't available - * like say /usr isn't mounted */ +/* ANSI escape codes which mimic termcap */ #define AF "\033[3%dm" #define CE "\033[K" #define CH "\033[%dC" @@ -94,7 +93,7 @@ static char *goto_column = NULL; static const char *term = NULL; static bool term_is_cons25 = false; -/* No curses support, so we hardcode a list of colour capable terms +/* Hardcoded list of colour capable terms * Only terminals without "color" in the name need to be explicitly listed */ static const char *const color_terms[] = { "Eterm", -- cgit v1.2.3