Skip to content
  • Johannes Sixt's avatar
    recv_sideband: Do not use ANSI escape sequence on dumb terminals. · 13e4760a
    Johannes Sixt authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarJohannes Sixt <johannes.sixt@telecom.at>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    13e4760a