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: G. Branden Robinson
Subject: Re: Providing an alternative TERMINFO environment variable
Date: Wed, 29 Nov 2023 13:25:15 -0600

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?

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

Attachment: signature.asc
Description: PGP signature


reply via email to

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