bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 052/100] man/ncurses.3x: Revise "ENVIRONMENT" section, NCURSES_AS


From: G. Branden Robinson
Subject: [PATCH 052/100] man/ncurses.3x: Revise "ENVIRONMENT" section, NCURSES_ASSUMED_COLORS (8/21).
Date: Sat, 30 Mar 2024 16:56:08 -0500

Identify terminfo capabilities by name _and_ code.
---
 man/ncurses.3x | 33 ++++++++++++++++++++++++---------
 1 file changed, 24 insertions(+), 9 deletions(-)

diff --git a/man/ncurses.3x b/man/ncurses.3x
index 8564a2d9b..bae729040 100644
--- a/man/ncurses.3x
+++ b/man/ncurses.3x
@@ -1195,15 +1195,30 @@ .SS "\fIMOUSE_BUTTONS_123\fP"
 .I \%ncurses
 assumes a numbering of \*(``132\*(''.
 .SS "\fINCURSES_ASSUMED_COLORS\fP"
-Override the compiled-in assumption that the
-terminal's default colors are white-on-black
-(see \fBdefault_colors\fP(3X)).
-You may set the foreground and background color values with this environment
-variable by proving a 2-element list: foreground,background.
-For example, to tell \fI\%ncurses\fP to not assume anything
-about the colors, set this to "\-1,\-1".
-To make it green-on-black, set it to "2,0".
-Any positive value from zero to the terminfo \fBmax_colors\fP value is allowed.
+If set,
+this variable overrides the
+.I \%ncurses
+library's compiled-in assumption that the terminal's default colors are
+white on black;
+see \fB\%default_colors\fP(3X).
+Set the foreground and background color values with this environment
+variable by assigning it two integer values separated by a comma,
+indicating foregound and background color numbers,
+respectively.
+.PP
+For example,
+to tell
+.I \%ncurses
+not to assume anything about the colors,
+use a value of \*(``\-1,\-1\*(''.
+To make the default color scheme green on black,
+use \*(``2,0\*(''.
+.I \%ncurses
+accepts integral values from \-1 up to the value of the
+.I \%term\%info
+.B \%max_colors
+.RB ( colors )
+capability.
 .SS "\fINCURSES_CONSOLE2\fP"
 This applies only to the MinGW port of \fI\%ncurses\fP.
 .PP
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]