mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
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:
parent
a65b5b0e3a
commit
c8aeba7ef8
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue