mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add special character map feature
Add a --map option which allows to map special characters, in particular CR and NL characters which are used in various combinations on varios platforms.
This commit is contained in:
parent
078bb6213d
commit
b2aafd696b
6 changed files with 77 additions and 2 deletions
|
|
@ -18,6 +18,7 @@ _tio()
|
|||
-o --output-delay \
|
||||
-n --no-autoconnect \
|
||||
-l --log \
|
||||
-m --map \
|
||||
-v --version \
|
||||
-h --help"
|
||||
|
||||
|
|
@ -56,6 +57,10 @@ _tio()
|
|||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
-m | --map)
|
||||
COMPREPLY=( $(compgen -W "INLCR IGNCR ICRNL ONLCR OCRNL" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
-v | --version)
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue