Skip to content

Commit 957140c

Browse files
xxc3nsoredxxwilliamh
authored andcommitted
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.
1 parent 536794d commit 957140c

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

man/einfo.3

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,6 @@ is true.
158158
prefixes the string
159159
.Fa prefix
160160
to 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
170163
when set to true makes the

src/libeinfo/libeinfo.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@
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;
9493
static const char *term = NULL;
9594
static 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 */
9998
static const char *const color_terms[] = {
10099
"Eterm",

0 commit comments

Comments
 (0)