mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Rename EOL delay to Output line delay
This commit is contained in:
parent
8b8dd373a7
commit
39af74f263
7 changed files with 45 additions and 40 deletions
|
|
@ -158,7 +158,7 @@ ssize_t tty_write(int fd, const void *buffer, size_t count)
|
|||
}
|
||||
}
|
||||
|
||||
if (option.output_delay || option.eol_delay)
|
||||
if (option.output_delay || option.output_line_delay)
|
||||
{
|
||||
// Write byte by byte with output delay
|
||||
for (i=0; i<count; i++)
|
||||
|
|
@ -172,9 +172,9 @@ ssize_t tty_write(int fd, const void *buffer, size_t count)
|
|||
}
|
||||
bytes_written += retval;
|
||||
|
||||
if (option.eol_delay && *(unsigned char*)buffer == '\r')
|
||||
if (option.output_line_delay && *(unsigned char*)buffer == '\r')
|
||||
{
|
||||
delay(option.eol_delay);
|
||||
delay(option.output_line_delay);
|
||||
}
|
||||
|
||||
fsync(fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue