fish: Restore text to default when exiting (RHBZ#1144201).

The escape sequence \e[0;30m sets the colour to black.  This is fine
if you use a black-on-white terminal, but fails rather badly if you
use a white-on-black terminal.

Instead use the escape sequence \e[0m which restores the terminal to
the defaults, and works in both cases.
This commit is contained in:
Richard W.M. Jones
2014-09-19 13:18:45 +01:00
parent 4aa38bba2c
commit 816d7cf941

View File

@@ -1336,7 +1336,7 @@ A bold black version of the ordinary prompt.
=item *
GUESTFISH_PS1='\[\e[1;32m\]><fs>\[\e[0;31m\] '
GUESTFISH_OUTPUT='\e[0;30m'
GUESTFISH_OUTPUT='\e[0m'
GUESTFISH_RESTORE="$GUESTFISH_OUTPUT"
GUESTFISH_INIT='\e[1;34m'