mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 07:43:18 +08: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
|
@ -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
|
||||
# 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)
|
||||
else
|
||||
echo -n "^C"
|
||||
|
|
Loading…
Reference in New Issue
Block a user