On 10/8/07, Lapo Luchini <[EMAIL PROTECTED]> wrote: > We could, in fact, add a --color option to "mtn diff" itself... [...] > Also "mtn log" and "mtn status" would have a big benefit from colors, in > fact. It could be nice to use them... should probably be off by default, > but turnable on by default using an hook or something. > > Does anyone object if I implement that? ;-)
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... zw _______________________________________________ Monotone-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/monotone-devel
