1
0
mirror of synced 2026-01-26 12:21:52 +00:00

Add small utility 'lsee' to change lisp font-escapes to color changes (#399)

This commit is contained in:
Larry Masinter
2021-08-08 13:38:33 -07:00
committed by GitHub
parent 3569379861
commit d6d47953d9

18
scripts/lsee Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
# Usage 'lsee file'
# translates CR as newline
# changes font-change control-characters ^F^x
# to linux color escapes:
# A regular
# B bold / bright
# C comment yellow
# D big/bold red
export LANG=C
tr '\r' '\n' < $1 | \
sed -e 's///g' \
-e 's///g'\
-e 's///g' \
-e 's///g'\
-e 's///g'