Is there a portable way to list supported terminal types on all *N*X systems?
If not, what's the best way to get this list on Solaris?
On most systems, you can look for files under
The definitive answer for any system will be in
If you have the
should work, but the location of the database is not consistent across operating systems.
What do you mean by terminals? Do you mean dumb terminals/terminal emulators? Or remote display systems?
As others have mentioned, [n]curses/terminfo tries to provide a unified abstraction layer for talking to dumb terminals - but there is no good measure of the coverage provided by the abstraction layer. Other than xterm (which builds on vt100 emulation) these are mostly only available for accessing legacy systems. (putty is more or less an xterm emulator on top of a ssh client).
OTOH the X Window system is a far more sophisticated kettle of fish - and only has one protocol which has had very few changes over the years.
There are other remote display protocols: (NX is just a wrapper around X) including RDP (as favoured by Microsoft and Citrix) but AFAIK there are no *nix servers, and VNC - which runs on all sorts of hardware.