+2
-1
readme.md
+2
-1
readme.md
···
1
1
# shlide
2
2
> a slide deck presentation tool written in pure bash
3
3
4
-

4
+

5
5
6
6
## Features
7
7
8
8
- All slides are plain-text files.
9
9
- Navigation using `j` / `k` or `n` / `p`.
10
+
- You can also navigate to the next slide using `SPACE` or `ENTER`.
10
11
- Text color and style formatting.
11
12
- Pure bash.
12
13
+3
-2
shlide
+3
-2
shlide
···
51
51
}
52
52
53
53
# Filter out color sequences.
54
-
shopt -s extglob
55
54
ansi_filter() {
55
+
shopt -s extglob
56
56
local IFS=
57
57
printf '%s' "${1//$'\e'[\[(]*([0-9;])[@-n]/}"
58
58
#" A little fix to prevent vim syntax highlighting from breaking.
59
+
shopt -u extglob
59
60
}
60
61
61
62
···
154
155
display "$(<"${slides[$i]}")" "${slides[$i]}" "$i" "${#slides[@]}"
155
156
read -rsn1 input
156
157
case "$input" in
157
-
"j"|"n")
158
+
"j"|"n"|"")
158
159
((++i))
159
160
;;
160
161
"k"|"p")