Input ICRCRNL mapping to avoid using INLCRNL with ICRNL

This commit is contained in:
David Ordnung 2025-04-23 01:05:12 +02:00 committed by Martin Lund
parent d682e98a66
commit c736b1e353
6 changed files with 46 additions and 19 deletions

View file

@ -116,6 +116,7 @@ struct option_t option =
.map_ign_cr = false,
.map_i_ff_escc = false,
.map_i_nl_crnl = false,
.map_i_cr_crnl = false,
.map_o_cr_nl = false,
.map_o_nl_crnl = false,
.map_o_del_bs = false,
@ -770,6 +771,10 @@ void option_parse_mappings(const char *map)
{
option.map_i_nl_crnl = true;
}
else if (strcmp(token,"ICRCRNL") == 0)
{
option.map_i_cr_crnl = true;
}
else if (strcmp(token, "ONLCRNL") == 0)
{
option.map_o_nl_crnl = true;