From cd2479796124586f245c25291f310c27ea4b585f Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Fri, 2 Dec 2022 12:45:45 +0100 Subject: [PATCH] Update flush command --- man/tio.1.in | 2 +- src/tty.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/man/tio.1.in b/man/tio.1.in index 3f29c6b..1ec1355 100644 --- a/man/tio.1.in +++ b/man/tio.1.in @@ -292,7 +292,7 @@ Toggle local echo mode .IP "\fBctrl-t f" Toggle log to file .IP "\fBctrl-t F" -Flush data I/O channels (discard data written but not transmitted and data received but not read) +Flush data I/O buffers (discard data written but not transmitted and data received but not read) .IP "\fBctrl-t g" Toggle serial port line .IP "\fBctrl-t h" diff --git a/src/tty.c b/src/tty.c index 83116b9..faad20c 100644 --- a/src/tty.c +++ b/src/tty.c @@ -525,6 +525,7 @@ void handle_command_sequence(char input_char, char *output_char, bool *forward) tio_printf(" ctrl-%c c Show configuration", option.prefix_key); tio_printf(" ctrl-%c e Toggle local echo mode", option.prefix_key); tio_printf(" ctrl-%c f Toggle log to file", option.prefix_key); + tio_printf(" ctrl-%c F Flush data I/O buffers", option.prefix_key); tio_printf(" ctrl-%c g Toggle serial port line", option.prefix_key); tio_printf(" ctrl-%c h Toggle hexadecimal mode", option.prefix_key); tio_printf(" ctrl-%c l Clear screen", option.prefix_key);