From c8aeba7ef885361c3e74551910922cbc69646868 Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Tue, 11 Oct 2022 12:12:37 +0200 Subject: [PATCH] Fix output line delay Apply output line delay on lines ending with \n. On most systems lines ends with \n or \r\n. --- src/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tty.c b/src/tty.c index 70d6208..75c7242 100644 --- a/src/tty.c +++ b/src/tty.c @@ -223,7 +223,7 @@ ssize_t tty_write(int fd, const void *buffer, size_t count) } bytes_written += retval; - if (option.output_line_delay && *(unsigned char*)buffer == '\r') + if (option.output_line_delay && *(unsigned char*)buffer == '\n') { delay(option.output_line_delay); }