Skip to content

Commit d6d4795

Browse files
authored
Add small utility 'lsee' to change lisp font-escapes to color changes (#399)
1 parent 3569379 commit d6d4795

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

scripts/lsee

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
3+
# Usage 'lsee file'
4+
# translates CR as newline
5+
# changes font-change control-characters ^F^x
6+
# to linux color escapes:
7+
# A regular
8+
# B bold / bright
9+
# C comment yellow
10+
# D big/bold red
11+
12+
export LANG=C
13+
tr '\r' '\n' < $1 | \
14+
sed -e 's///g' \
15+
-e 's///g'\
16+
-e 's///g' \
17+
-e 's///g'\
18+
-e 's///g'

0 commit comments

Comments
 (0)