Just how to lower ncurses terminfo dimension

I see that ncurses's terminfo data source on /usr/share/terminfo has to do with 7MB (I assembled it myself). This is also huge if I intend to release it on an embedded Linux of 64MB disk room.

Exists a means to lower its dimension by removing unnecessary access and also maintain the most-used ones? And also what's is this in fact for?

MODIFY: Exists any kind of details or reference for generally made use of terminfo for normal PCs or SSH customers?

2019-05-04 10:46:02
Source Share
Answers: 2

With ansi, cygwin, linux, vt100, vt220, and also xterm terminfo interpretations, I anticipate you would certainly have the ability to strike 98% of the incurable emulations that you'll run into in the wild.

Also incurable emulators that have a various indigenous setting can likely be routed to mimic vt100/vt220 settings, usually without customer treatment.

2019-05-08 23:22:54

I despise to offer RTFM type solutions, yet what details are you seeking that isn't had in man 5 terminfo? It is usually very easy to forget hand-operated web pages when there are numerous hand-operated web pages in various areas. Usually the various other hand-operated web pages to consider will certainly be detailed at the end of the first hand-operated web page that is located, yet it is additionally handy to bear in mind that hand-operated web pages are separated right into numerous areas (from man man) :

   1   Executable programs or shell commands
   2   System calls (functions provided by the kernel)
   3   Library calls (functions within program libraries)
   4   Special files (usually found in /dev)
   5   File formats and conventions eg /etc/passwd
   6   Games
   7   Miscellaneous  (including  macro  packages  and  conventions)
   8   System administration commands (usually only for root)
   9   Kernel routines [Non standard]

From man 5 terminfo it appears that just how much you can get rid of from/ usr/share/terminfo will certainly rely on whether you have full control over the incurable type (which you likely do). If you recognize that you will just ever before be working on one incurable type, you can likely remove almost among the incurable discriptions. On some systems, these terminfo documents are additionally in/ etc/terminfo/ or/ lib/terminfo/, yet I am unclear if this holds true when you compile straight from the upstream tarball.

2019-05-08 02:33:16