Page MenuHomeFreeBSD

Generate termcap.small from termcap automatically

Authored by sobomax on Aug 24 2022, 6:48 PM.
Referenced Files
Unknown Object (File)
Sun, Jun 30, 3:45 AM
Unknown Object (File)
Fri, Jun 28, 2:56 AM
Unknown Object (File)
Thu, Jun 27, 12:46 AM
Unknown Object (File)
Thu, Jun 27, 12:40 AM
Unknown Object (File)
Wed, Jun 26, 7:21 PM
Unknown Object (File)
Mon, Jun 24, 4:15 AM
Unknown Object (File)
Mon, Jun 24, 3:51 AM
Unknown Object (File)
Sat, Jun 22, 2:00 AM



Looks like termcap.small is missing some entries and changes that were committed in the past 10+ years. This change aims at fixing it by removing the need to do manual synchronization and simply building termcap.small automatically along with the rest of the world, thus ensuring 100% current and future synchronization.

Test Plan
  1. make buildworld
  2. run mergemaster
  3. make sure termcap.small is the only termcap in the system, test sc (consXX) and vt (xterm) consoles.

Diff Detail

rG FreeBSD src repository
Lint Not Applicable
Tests Not Applicable

Event Timeline

is it worth adding the cons* in 2022 ?

yes because we sstill have sc

This revision is now accepted and ready to land.Aug 25 2022, 1:30 PM

Works for me, but why do we even bother with a small termcap at all? Is the added complexity worth any "speedup" that I'm sure might not even be measurable on today's systems?

aggreed with @uqs with in my previous work on terminfo I planned to nuke support for termcap.small, but I haven't been brave enough to push it, as I was expecting backfire.

I'm kinda agnostic on this.
I created termcap.small 20ish years ago to have a termcap that's good enough for me to vi files on the embedded systems I logged into.
It was originally trimmed to fit into < 512 bytes so it fit into one block on a 16MB CF card that I was a little tight on space on.
Those systems were retired, scrapped and shredded 10-12 years ago (my info about that is a little sketchy, but I do know the company I worked for no longer supports them for that time).
It's still likely useful, but only because I'm not sure how many people would use the terminals that are in the remainder of the file.... There's a lot of old-school terminals that were almost obsolete when I was in college...
So if you must, this seems as sane as any other option.

termcap.small is still useful I think for the case when /usr is not mounted (i.e. single-user/recovery mode in a traditional FS layout). These days of course most people are using monolithic root+usr esp with ZFS, however we for example have 200+ systems in the field partitioned in a traditional way, so I am wondering how many there may be people like us out there.