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
22
man/tio.1
22
man/tio.1
|
|
@ -55,6 +55,28 @@ option is provided, tio will exit if the device is not present or an established
|
|||
.BR \-l ", " "\-\-log " \fI<filename>
|
||||
|
||||
Log to file.
|
||||
|
||||
.TP
|
||||
.BR \-m ", " "\-\-map " \fI<flags>
|
||||
|
||||
Map (replace, translate) special characters on input or output. The following mapping flags are supported:
|
||||
|
||||
.RS
|
||||
.TP 8n
|
||||
.IP "\fBINLCR"
|
||||
Translate NL to CR on input.
|
||||
.IP "\fBIGNCR"
|
||||
Ignore carriage return on input.
|
||||
.IP "\fBICRNL"
|
||||
Translate carriage return to newline on input (unless IGNCR is set).
|
||||
.IP "\fBONLCR"
|
||||
Map NL to CR-NL on output.
|
||||
.IP "\fBOCRNL"
|
||||
Map CR to NL on output.
|
||||
.P
|
||||
If defining more than one flag, the flags must be comma separated.
|
||||
.RE
|
||||
|
||||
.TP
|
||||
.BR \-v ", " \-\-version
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue