Git-Presentation/bin/tidy
Jonathan Hodgson 22ef5f581d A lot of work on the presentation
The shell auto-image now runs code and turns the output into an image
that is embedded into the document

The prompt is configurable in /bin/prompt

The first draft is done up until the references section
2020-06-11 17:31:21 +01:00

14 lines
264 B
Bash
Executable file

#!/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