You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
264 B

#!/usr/bin/env bash
fixAnsiReset(){
FIND="$(echo -e "\033[m")"
REPLACE="$(echo -e "\033[0m")"
#sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g"
cat - | sed -r 's/\x1B\[m/\x1B\[0m/g'
}
fixTab(){
cat - | sed 's/\t/ /g'
}
cat - | fixAnsiReset | fixTab