Skip to content
Commit 9ea2b62e authored by Ting-Wei Lan's avatar Ting-Wei Lan
Browse files

terminal: Try both terminfo and termcap names when running tput

FreeBSD doesn't have a terminfo database, and its tput command only
support termcap names. To make bold text works on more systems, we try
both terminfo and tercap names before giving up and using normal text.

This commit also adds terminfo 'setaf' as an alternative to 'setf'
because it seems that the latter only works with xterm, not with other
popular terminals such as xterm-256color and screen.

https://bugzilla.gnome.org/show_bug.cgi?id=774070
parent a35df68d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment