File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,13 +158,6 @@ is true.
158158prefixes the string
159159.Fa prefix
160160to the above functions.
161- .Sh IMPLEMENTATION NOTES
162- einfo can optionally be linked against the
163- .Lb libtermcap
164- so that we can correctly query the connected console for our color and
165- cursor escape codes.
166- If not, then we have a hard coded list of terminals we know about that support
167- the commonly used codes for color and cursor position.
168161.Sh ENVIRONMENT
169162.Va EINFO_QUIET
170163when set to true makes the
Original file line number Diff line number Diff line change 5050#define HILITE 6
5151#define BRACKET 4
5252
53- /* We fallback to these escape codes if termcap isn't available
54- * like say /usr isn't mounted */
53+ /* ANSI escape codes which mimic termcap */
5554#define AF "\033[3%dm"
5655#define CE "\033[K"
5756#define CH "\033[%dC"
@@ -94,7 +93,7 @@ static char *goto_column = NULL;
9493static const char * term = NULL ;
9594static bool term_is_cons25 = false;
9695
97- /* No curses support, so we hardcode a list of colour capable terms
96+ /* Hardcoded list of colour capable terms
9897 * Only terminals without "color" in the name need to be explicitly listed */
9998static const char * const color_terms [] = {
10099 "Eterm" ,
You can’t perform that action at this time.
0 commit comments