diff options
author | Johannes Sixt <johannes.sixt@telecom.at> | 2008-01-08 17:24:53 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-01-09 12:23:59 -0800 |
commit | 13e4760a1649d24519f95ae2375704738b2b219e (patch) | |
tree | ed145b7befbc0139ff539558d8d4f8b7fdc8d6e7 /ws.c | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/gitk/gitk (diff) | |
download | tgif-13e4760a1649d24519f95ae2375704738b2b219e.tar.xz |
recv_sideband: Do not use ANSI escape sequence on dumb terminals.
The "clear to end of line" sequence is used to nicely output the progress
indicator without leaving garbage on the terminal. However, this works
only on ANSI capable terminals. We use the same check as in color.c to
find out whether the terminal supports this feature and use a workaround
(a few spaces in a row) if it does not.
[jc: as an old fashoned git myself, and given the fact that the
possible prefix and suffix are small number of short constant strings,
I actually prefer a simpler-and-more-stupid approach. This is with
Nico's clean-up.]
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ws.c')
0 files changed, 0 insertions, 0 deletions