···11# shlide
22> a slide deck presentation tool written in pure bash
3344-
44+
5566## Features
7788- All slides are plain-text files.
99- Navigation using `j` / `k` or `n` / `p`.
1010+- You can also navigate to the next slide using `SPACE` or `ENTER`.
1011- Text color and style formatting.
1112- Pure bash.
1213
+3-2
shlide
···5151}
52525353# Filter out color sequences.
5454-shopt -s extglob
5554ansi_filter() {
5555+ shopt -s extglob
5656 local IFS=
5757 printf '%s' "${1//$'\e'[\[(]*([0-9;])[@-n]/}"
5858 #" A little fix to prevent vim syntax highlighting from breaking.
5959+ shopt -u extglob
5960}
60616162···154155 display "$(<"${slides[$i]}")" "${slides[$i]}" "$i" "${#slides[@]}"
155156 read -rsn1 input
156157 case "$input" in
157157- "j"|"n")
158158+ "j"|"n"|"")
158159 ((++i))
159160 ;;
160161 "k"|"p")