[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[wdiff-bugs] Color mode

From: Victor Engmark
Subject: [wdiff-bugs] Color mode
Date: Thu, 10 Nov 2011 14:21:21 +0100
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv: Gecko/20091204 Thunderbird/3.0

Based on standard instructions for using color codes in the shell, how about using this method for more portable color coding:

wdiff -w "$(tput bold;tput setaf 1)" -x "$(tput sgr0)" -y "$(tput bold;tput setaf 2)" -z "$(tput sgr0)" "$@"

It would also be very nice if this could be built into wdiff as a new option, like `git diff --color=[auto|always|never]` does to very good effect.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]