mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-22 16:23:55 +08:00
15 lines
293 B
Fish
Executable File
15 lines
293 B
Fish
Executable File
# Remove the sorts of escape sequences interactive fish prints.
|
|
|
|
# First the enable sequences, then a "|" combiner and then the disable ones
|
|
set -l escapes "\e\[\?2004h"\
|
|
"\e\[>4;1m"\
|
|
"\e\[>5u"\
|
|
"\e="\
|
|
"|"\
|
|
"\e\[\?2004l"\
|
|
"\e\[>4;0m"\
|
|
"\e\[<1u"\
|
|
"\e>"
|
|
|
|
cat | string replace -ra -- $escapes ''
|