bug-ncurses
[Top][All Lists]
Advanced

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

Re: Providing an alternative TERMINFO environment variable


From: Thomas Dickey
Subject: Re: Providing an alternative TERMINFO environment variable
Date: Wed, 29 Nov 2023 14:50:39 -0500 (EST)

----- Original Message -----
| From: "G. Branden Robinson" <g.branden.robinson@gmail.com>
| To: "Ncurses Mailing List" <bug-ncurses@gnu.org>
| Sent: Wednesday, November 29, 2023 2:25:15 PM
| Subject: Re: Providing an alternative TERMINFO environment variable

| At 2023-11-28T17:14:26+0000, Igor Todorovski wrote:
|> I’m an IBM z/OS mainframe developer. On z/OS, we have an existing
|> TERMINFO db that is in EBCDIC format and z/OS already check for
|> TERMINFO, but I would like to provide a way to override that with a
|> different environment variable so as to instruct ncurses where to
|> check for the ascii terminfo.
|> 
|> I have added the below code to enable setting ASCII_TERMINFO. I’m not
|> sure if the environment variable name is reasonable or not, but the
|> z/OS system default checks for TERMINFO so I needed a way to tell
|> ncurses where to pick up tis terminfo db.
|> 
|> Is there a better alternative?
| 
| Doesn't TERMINFO_DIRS do this job?

No - $TERMINFO is tested first, and if he has some other implementation
where he is setting $TERMINFO, there's a conflict.

| 
| ncurses(3x):
|   TERMINFO_DIRS
|     Specifies a list of locations to search for terminal descriptions.
|     Each location in the list is a terminal database as described in
|     the section on the TERMINFO variable.  The list is separated by
|     colons (i.e., ":") on Unix, semicolons on OS/2 EMX.
| 
|     There is no corresponding feature in System V terminfo; it is an
|     extension developed for ncurses.
| 
| Regards,
| Branden

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net



reply via email to

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