mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user