mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Mute output from command -v tput
(#3355)
The previous change here caused an obviously unwanted path to the `tput` command to be left on the prompt after ^C.
This commit is contained in:
parent
363fa0a598
commit
f0e884075c
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ function __fish_cancel_commandline
|
||||||
#
|
#
|
||||||
# Set reverse fg/bg color mode, output ^C, restore normal mode, clear to EOL (to erase any
|
# Set reverse fg/bg color mode, output ^C, restore normal mode, clear to EOL (to erase any
|
||||||
# autosuggestion).
|
# autosuggestion).
|
||||||
if command -v tput
|
if command -v tput >/dev/null
|
||||||
echo -ns (tput smso; or tput so) "^C" (tput rmso; or tput se) (tput el; or tput ce)
|
echo -ns (tput smso; or tput so) "^C" (tput rmso; or tput se) (tput el; or tput ce)
|
||||||
else
|
else
|
||||||
echo -n "^C"
|
echo -n "^C"
|
||||||
|
|
Loading…
Reference in a new issue