Fix output line delay

Apply output line delay on lines ending with \n.

On most systems lines ends with \n or \r\n.
This commit is contained in:
Martin Lund 2022-10-11 12:12:37 +02:00
parent a65b5b0e3a
commit c8aeba7ef8

View file

@ -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);
}