The bulk of the question is in title, but to elaborate a little:
On most Linuxes I can find /usr/share/terminfo -type f
. But on Solaris machine I have nearby - this directory doesn't even exist.
I could iterate over a list of terminals, and do something like:
for TERM in xterm xtermc xterm-color xterm-256color screen rxvt
do
tput cols >/dev/null 2>/dev/null && echo "$TERM available"
done
But it's slow. Any options to discover path used by tput
to terminal definitions, and run "find" myself?
On Solaris 10 you can do:
find /usr/share/lib/terminfo -type f -print
You should be able to do something like:
find /usr -type d -name terminfo -print
to find where the directory is located.
You can also read to find the exact path:
man terminfo
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments