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

Re: [PATCH] test-lib: fix color reset in say_color()

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 10, 2008, 09:30 UTC
Message-ID
<m33aj4lrvs.fsf@localhost.localdomain>
In-Reply-To
<1223590030-7464-1-git-send-email-vmiklos@frugalware.org>
Miklos Vajna <vmiklos@frugalware.org> writes:
Show 13 quoted lines
> When executing a single test with colors enabled, the cursor was not set
> back to the previous one, and you had to hit an extra enter to get it
> back.
> 
> Work around this problem by calling 'tput sgr0' before printing the
> final newline.
> 
> Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
> ---
> 
> Actually I'm not 100% sure about how many users are affected. I have a
> black background in konsole with white letters, and after the test I get
> a green cursor, and once I hit enter, I get the white one back.

I also had this very minor irritation that cursor retained color of last line till enter (or IIRC any key which moved cursor). I use ordinary xterm from X.Org 6.8.2(213).

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Miklos VajnaNext: Jeff King
Message 2 of 3 in “test-lib: fix color reset in say_color()”
  1. test-lib: fix color reset in say_color()Miklos Vajna, Oct 9, 2008
  2. Jakub NarebskiOct 10, 2008
  3. Jeff KingOct 11, 2008

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.