mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Merge pull request #31 from jwilk/output-delay
Insert output delay only if something was output
This commit is contained in:
commit
f1fbab1673
1 changed files with 5 additions and 3 deletions
|
|
@ -319,14 +319,16 @@ int connect_tty(void)
|
|||
|
||||
/* Update transmit statistics */
|
||||
tx_total++;
|
||||
|
||||
/* Insert output delay */
|
||||
if (option.output_delay)
|
||||
usleep(option.output_delay * 1000);
|
||||
|
||||
}
|
||||
|
||||
/* Save previous key */
|
||||
previous_char = input_char;
|
||||
|
||||
/* Insert output delay */
|
||||
if (option.output_delay)
|
||||
usleep(option.output_delay * 1000);
|
||||
}
|
||||
} else if (status == -1)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue