[darcs-users] [darcs #306] proposal for whitespace annotation in darcs what

Ketil Malde ketil.malde at bccs.uib.no
Fri Apr 1 18:17:56 UTC 2005


Philipp Kern <pkern at debian.org> writes:

> Well, the dark blue foreground color is a bad choice for black
> terminals which are not that uncommon.

/De gustibus/...  IMHO, dark blue is fine in *my* black terminal.
Inspired by Jamie's printf's, I toyed around a bit, and I find that my
favorite is using dark blue '>' for \t and '.' for spaces is visually
non-intrusive, while revealing the underlying whitespace structure.

I would like control characters to be displayed with highlighted
background, though, as in (assuming the last char is \r):

  printf "\033[34m>\t>\t\033[39mtest\033[34m.\033[39mtext\033[41mR\033[39m\n"

On a white background, I like grey whitespace indicators:

  printf "\033[37m>\t>\t\033[39mtest\033[37m.\033[39mtext\033[41mR\033[39m\n"

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants





More information about the darcs-users mailing list