git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-fetch ansi control sequences

From
Romain Francoise <romain@orebokech.com>
Date
Nov 29, 2007, 20:10 UTC
Message-ID
<87prxs6ces.fsf@elegiac.orebokech.com>

Running 'git fetch' in a dumb terminal (like an Emacs shell buffer) now outputs raw control sequences, which isn't particularly pretty:

| remote: Generating pack...^[[K
| remote: Done counting 4044 objects.^[[K
| remote: Result has 2577 objects.^[[K
| remote: Deltifying 2577 objects...^[[K
| remote:
| remote: Total 2577 (delta 2150), reused 2457 (delta 2044)^[[K

It would be easy to make recv_sideband() check if the terminal is dumb, but I have a feeling that the sideband code shouldn't have to know about such things, being rather generic.

What do people think?
Message 1 of 1 in “git-fetch ansi control sequences”
  1. Romain FrancoiseNov 29, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.