2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-18 16:04:04 +00:00
fish-shell/tests/filter-control-sequences.sh

15 lines
242 B
Bash
Raw Normal View History

#!/bin/sh
escape=$(printf '\033')
"$1" -c 'cat | string replace -ra $argv[1] ""' -- "\
""$escape\[\?2004h""\
""$escape\[>4;1m""\
""$escape\[>5u""\
""$escape=""\
""|""\
""$escape\[\?2004l""\
""$escape\[>4;0m""\
""$escape\[<1u""\
""$escape>"