mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Add OIGNCR mapping flag
Ignores CR on output to serial device.
This commit is contained in:
parent
8c471105fe
commit
4723cc3f4e
5 changed files with 25 additions and 6 deletions
|
|
@ -119,6 +119,7 @@ struct option_t option =
|
|||
.map_o_ltu = false,
|
||||
.map_o_nulbrk = false,
|
||||
.map_o_msblsb = false,
|
||||
.map_o_ign_cr = false,
|
||||
};
|
||||
|
||||
void option_print_help(char *argv[])
|
||||
|
|
@ -768,6 +769,10 @@ void option_parse_mappings(const char *map)
|
|||
{
|
||||
option.map_o_nulbrk = true;
|
||||
}
|
||||
else if (strcmp(token, "OIGNCR") == 0)
|
||||
{
|
||||
option.map_o_ign_cr = true;
|
||||
}
|
||||
else if (strcmp(token, "MSB2LSB") == 0)
|
||||
{
|
||||
option.map_o_msblsb = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue