[notcurses.3] document all environment variables

This commit is contained in:
nick black 2021-12-03 20:04:46 -05:00
parent d98eb2a454
commit 52c40cbca5
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 20 additions and 1 deletions

View File

@ -172,6 +172,25 @@ signals which would normally terminate the process. The new handlers will try
to call **notcurses_stop(3)**, and then propagate the received signal to the
previous action.
# ENVIRONMENT VARIABLES
The **TERM** environment variable ought be correctly defined. It will be used
to index into the **terminfo(5)** database by way of **setupterm(3NCURSES)**.
Notcurses will additionally use **TERM_PROGRAM** to distinguish certain
terminals.
If the **COLORTERM** environment variable is defined as "**24bit**" or
"**truecolor**", Notcurses will assume the terminal capable of 24-bit RGB
color, even in the absence of "**RGB**" or "**Tc**" capabilities in
terminfo.
If the **NOTCURSES_LOGLEVEL** environment variable is defined as a number
between -1 and 8, inclusive, that will override any logging level specified
in the **struct notcurses_options** provided to **notcurses_init(3)**.
The **LOGNAME** environment variable, if defined, will be used for
**notcurses_accountname(3)**.
# NOTES
When using the C++ wrappers, **NCPP_EXCEPTIONS_PLEASE** can be defined in

View File

@ -993,7 +993,7 @@ TEST_CASE("Wide") {
#ifndef __APPLE__ // FIXME
SUBCASE("OfflineEGCs") {
nccell c = NCCELL_TRIVIAL_INITIALIZER;
const char egc[] = "\U0001F471\u200D\u2640"; // all one EGC
const char egc[] = u8"\U0001F471\u200D\u2640"; // all one EGC
CHECK(0 < nccell_load(n_, &c, egc));
ncplane_set_scrolling(n_, true);
for(int i = 0 ; i < 100 ; ++i){ // FIXME fill up stdplane