Update text

This commit is contained in:
Martin Lund 2022-02-12 04:02:54 +01:00
parent 7e74f8cbe0
commit 16836de0e5
3 changed files with 11 additions and 10 deletions

View file

@ -59,7 +59,7 @@ Enable local echo.
.TP .TP
.BR \-t ", " \-\-timestamp .BR \-t ", " \-\-timestamp
Timestamp lines. Enable line timestamp.
.TP .TP
.BR \-L ", " \-\-list\-devices .BR \-L ", " \-\-list\-devices

View file

@ -64,8 +64,8 @@ void print_help(char *argv[])
printf(" -p, --parity odd|even|none Parity (default: none)\n"); printf(" -p, --parity odd|even|none Parity (default: none)\n");
printf(" -o, --output-delay <ms> Output delay (default: 0)\n"); printf(" -o, --output-delay <ms> Output delay (default: 0)\n");
printf(" -n, --no-autoconnect Disable automatic connect\n"); printf(" -n, --no-autoconnect Disable automatic connect\n");
printf(" -e, --local-echo Do local echo\n"); printf(" -e, --local-echo Enable local echo\n");
printf(" -t, --timestamp Timestamp lines\n"); printf(" -t, --timestamp Enable line timestamp\n");
printf(" -L, --list-devices List available serial devices\n"); printf(" -L, --list-devices List available serial devices\n");
printf(" -l, --log <filename> Log to file\n"); printf(" -l, --log <filename> Log to file\n");
printf(" -m, --map <flags> Map special characters\n"); printf(" -m, --map <flags> Map special characters\n");

View file

@ -139,16 +139,16 @@ void handle_command_sequence(char input_char, char previous_char, char *output_c
tio_printf(" ctrl-t ? List available key commands"); tio_printf(" ctrl-t ? List available key commands");
tio_printf(" ctrl-t b Send break"); tio_printf(" ctrl-t b Send break");
tio_printf(" ctrl-t c Show configuration"); tio_printf(" ctrl-t c Show configuration");
tio_printf(" ctrl-t d Toggle DTR line");
tio_printf(" ctrl-t e Toggle local echo mode"); tio_printf(" ctrl-t e Toggle local echo mode");
tio_printf(" ctrl-t h Toggle hexadecimal mode"); tio_printf(" ctrl-t h Toggle hexadecimal mode");
tio_printf(" ctrl-t l Clear screen"); tio_printf(" ctrl-t l Clear screen");
tio_printf(" ctrl-t L Show lines state");
tio_printf(" ctrl-t q Quit"); tio_printf(" ctrl-t q Quit");
tio_printf(" ctrl-t r Toggle RTS line");
tio_printf(" ctrl-t s Show statistics"); tio_printf(" ctrl-t s Show statistics");
tio_printf(" ctrl-t t Send ctrl-t key code"); tio_printf(" ctrl-t t Send ctrl-t key code");
tio_printf(" ctrl-t T Toggle timestamps"); tio_printf(" ctrl-t T Toggle line timestamp mode");
tio_printf(" ctrl-t L Show lines");
tio_printf(" ctrl-t d Toggle DTR");
tio_printf(" ctrl-t r Toggle RTS");
tio_printf(" ctrl-t v Show version"); tio_printf(" ctrl-t v Show version");
break; break;
@ -186,8 +186,8 @@ void handle_command_sequence(char input_char, char previous_char, char *output_c
tio_printf(" Flow: %s", option.flow); tio_printf(" Flow: %s", option.flow);
tio_printf(" Stopbits: %d", option.stopbits); tio_printf(" Stopbits: %d", option.stopbits);
tio_printf(" Parity: %s", option.parity); tio_printf(" Parity: %s", option.parity);
tio_printf(" Local Echo: %s", option.local_echo ? "yes":"no"); tio_printf(" Local echo: %s", option.local_echo ? "enabled" : "disabled");
tio_printf(" Timestamps: %s", option.timestamp ? "yes" : "no"); tio_printf(" Timestamps: %s", option.timestamp ? "enabled" : "disabled");
tio_printf(" Output delay: %d", option.output_delay); tio_printf(" Output delay: %d", option.output_delay);
if (option.map[0] != 0) if (option.map[0] != 0)
tio_printf(" Map flags: %s", option.map); tio_printf(" Map flags: %s", option.map);
@ -228,7 +228,8 @@ void handle_command_sequence(char input_char, char previous_char, char *output_c
case KEY_S: case KEY_S:
/* Show tx/rx statistics upon ctrl-t s sequence */ /* Show tx/rx statistics upon ctrl-t s sequence */
tio_printf("Statistics:"); tio_printf("Statistics:");
tio_printf(" Sent %lu bytes, received %lu bytes", tx_total, rx_total); tio_printf(" Sent %lu bytes", tx_total);
tio_printf(" Received %lu bytes", rx_total);
break; break;
case KEY_T: case KEY_T: