From a8e0d2693d8e0016d09e90012a23de30999294be Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Thu, 18 Apr 2024 13:39:55 +0200 Subject: [PATCH] Do not echo CR in line input and hex output mode --- src/tty.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tty.c b/src/tty.c index e43c4e2..e4e348a 100644 --- a/src/tty.c +++ b/src/tty.c @@ -1519,7 +1519,10 @@ void forward_to_tty(int fd, char output_char) } else { - optional_local_echo(output_char); + if (option.input_mode == INPUT_MODE_NORMAL) + { + optional_local_echo(output_char); + } } break;