Heray-Was-Here
Server : Apache
System : Linux vps43555.mylogin.co 3.10.0-1160.53.1.vz7.185.3 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
User : redsea ( 60651)
PHP Version : 7.4.32
Disable Function : NONE
Directory :  /usr/share/fish/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/fish/functions/__fish_cancel_commandline.fish
# This is meant to be bound to something like \cC.
function __fish_cancel_commandline
    set -l cmd (commandline)
    if test -n "$cmd"
        commandline -C 1000000
        # TODO: Switch from using tput and standout mode to `set_color` when themes have been
        # augmented to include support for background colors or has support for standout/reverse
        # mode.
        #
        # Set reverse fg/bg color mode, output ^C, restore normal mode, clear to EOL (to erase any
        # autosuggestion).
        echo -n (tput smso)"^C"(tput rmso)(tput el)
        for i in (seq (commandline -L))
            echo ""
        end
        commandline ""
        commandline -f repaint
    end
end

Hry