OpenRC is Terminal

08 Dec 2007 • 1 min read

Sorry, that was meant to be goes terminal ;)Or more specifically, it can now query the termcap library to find out if your terminal supports the codes we need to do colour, boldness and cursor movement. We just use tgetent, tgetstr and tgoto, so just a standard libtermcap is all that is needed, but we optionally build against the more popular ncurses as well.Some BSDs termcap database is found on /usr, which is no good for us as we bring the system up, so we do have hardcoded escape codes for cons25 if querying the termcap database fails.