···4646}
47474848# Filter out color sequences.
4949-shopt -s extglob
5049ansi_filter() {
5050+ shopt -s extglob
5151 local IFS=
5252 printf '%s' "${1//$'\e'[\[(]*([0-9;])[@-n]/}"
5353 #" A little fix to prevent vim syntax highlighting from breaking.
5454+ shopt -u extglob
5455}
55565657