#!/bin/sh

# Usage 'lsee file'
# translates CR as newline
# translate _ and ^
# 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=en_US.UTF-8
tr '\r' '\n' < $1 | \
    sed -e 's/_/←/g'        \
	-e 's/\^/↑/g'        \
	-e 's//[0m/g' \
	-e 's//[31m/g'\
	-e 's//[1m/g' \
	-e 's//[33m/g'\
	-e 's//[32m/g'\
	-e 's//[35m:[0m/g' \
    | less -r
