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