diff options
author | Oskari Pirhonen <xxc3ncoredxx@gmail.com> | 2024-02-20 22:52:33 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2024-03-31 23:13:02 -0500 |
commit | 957140cb7878ce353c812cf7ea8ba9d46a942412 (patch) | |
tree | b34414467e21bc115f744d8879cb4dbf00ff148b | |
parent | 536794dfad33be978c7b1f8005c899c8d4ce2fa6 (diff) | |
download | openrc-957140cb7878ce353c812cf7ea8ba9d46a942412.tar.xz |
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.
-rw-r--r-- | man/einfo.3 | 7 | ||||
-rw-r--r-- | src/libeinfo/libeinfo.c | 5 |
2 files changed, 2 insertions, 10 deletions
diff --git a/man/einfo.3 b/man/einfo.3 index fd268c42..9b8826eb 100644 --- a/man/einfo.3 +++ b/man/einfo.3 @@ -158,13 +158,6 @@ is true. prefixes the string .Fa prefix to the above functions. -.Sh IMPLEMENTATION NOTES -einfo can optionally be linked against the -.Lb libtermcap -so that we can correctly query the connected console for our color and -cursor escape codes. -If not, then we have a hard coded list of terminals we know about that support -the commonly used codes for color and cursor position. .Sh ENVIRONMENT .Va EINFO_QUIET when set to true makes the 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", |