On Mon, Oct 08, 2007 at 08:32:45PM +0100, Zack Weinberg wrote: > It's a good idea but you need to be careful how you implement it. > Hardwiring VT220 color control codes would be bad. So would making us > depend on ncurses. > > I'd suggest a set of Lua hooks that know the necessary escape > sequences for the most common TERM= settings (xterm, etc) and can > query the 'tput' utility for less common ones. You could also use > this to get at the line-drawing characters for > asciik...
Before going this route, could you expand on "hardwiring VT220 color control codes would be bad"? Are there any terminals we actually care about that this would fail on? (Note that the grep and ls maintainers have both answered "no" to this question; search for the string '33[' in their source code. ls at least appears to also have a whitelist of $TERM values that are colorizable, dunno about grep.) -- Nathaniel -- Eternity is very long, especially towards the end. -- Woody Allen _______________________________________________ Monotone-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/monotone-devel
