Add mapping flags INLCRNL and ODELBS

The following new mapping flags are added:

INLCRNL: Map NL to CR-NL on input.
ODELBS: Map DEL to BS on output.

Flags requested and tested by Jan Ciger (janoc).
This commit is contained in:
Martin Lund 2017-12-29 11:24:28 +01:00
parent 60cbc5b368
commit 77c19ff152
3 changed files with 29 additions and 6 deletions

View file

@ -62,17 +62,21 @@ Log to file.
Map (replace, translate) special characters on input or output. The following mapping flags are supported:
.RS
.TP 8n
.TP 12n
.IP "\fBINLCR"
Map NL to CR on input.
.IP "\fBINLCRNL"
Map NL to CR-NL on input.
.IP "\fBIGNCR"
Ignore CR on input.
.IP "\fBICRNL"
Map CR to NL on input (unless IGNCR is set).
.IP "\fBONLCR"
.IP "\fBONLCRNL"
Map NL to CR-NL on output.
.IP "\fBOCRNL"
Map CR to NL on output.
.IP "\fBODELBS"
Map DEL to BS on output.
.P
If defining more than one flag, the flags must be comma separated.
.RE