blob: 7f1a55da045b62ab06d7efffcc062d1edfc3633b (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
# use th is to strip out ANSI codes, if you want to pipe
# outputof 'cabal test' to a file.
if which -s gsed; then
gsed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"
else
gsed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"
fi
|