all repos — shlide @ 06df2aceca968a760a5cc1640230e1c0b9d1b9cb

slide deck presentation tool written in pure bash

move `shopt` into ansi_filter, closes #1
Akshay nerdypepper@tuta.io
Mon, 03 Feb 2020 20:03:11 +0530
commit

06df2aceca968a760a5cc1640230e1c0b9d1b9cb

parent

302f51595935f3b82147dee2e0df880fbc5cfaf5

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M shlideshlide

@@ -46,11 +46,12 @@ printf '%b' "$dummy"

} # Filter out color sequences. -shopt -s extglob ansi_filter() { + shopt -s extglob local IFS= printf '%s' "${1//$'\e'[\[(]*([0-9;])[@-n]/}" #" A little fix to prevent vim syntax highlighting from breaking. + shopt -u extglob }