slide deck presentation tool written in pure bash

improve centering on highlighted slides

Akshay bd9835c3 ccc315bc

Changed files
+7 -4
example
+2 -2
example/1-hi.txt
··· 1 1 HI THERE 2 2 3 - Welcome to ${GRN}shlide${RST}. Here are a few bullet points: 3 + Welcome to ${GRN}shlide${RST}. ${YLW}Here${RST} are a few bullet points: 4 4 5 5 - first point 6 6 - second point 7 7 * sub point 8 - * another sub point 8 + * ${RED}another${RST} sub point
+5 -2
shlide
··· 20 20 } 21 21 22 22 longest_line() { 23 - max=0 IFS= 23 + max=0 24 + local IFS= 24 25 while read -r line; do 25 - if [ "${#line}" -gt "$max" ]; then max="${#line}"; fi 26 + l=$(ansi_filter $(colorify "$line")) 27 + echo "$l" >> log.txt 28 + if [ "${#l}" -gt "$max" ]; then max="${#l}"; fi 26 29 done < "$1" 27 30 printf '%s\n' "$max" 28 31 }