mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Use tty_write to write piped input to tty
This commit is contained in:
parent
6fb3a64ba2
commit
8e6d77407e
1 changed files with 1 additions and 1 deletions
|
|
@ -2639,7 +2639,7 @@ int tty_connect(void)
|
||||||
else if (ret > 0)
|
else if (ret > 0)
|
||||||
{
|
{
|
||||||
// Forward to tty device
|
// Forward to tty device
|
||||||
ret = write(device_fd, &input_char, 1);
|
ret = tty_write(device_fd, &input_char, 1);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
tio_error_printf("Could not write to serial device (%s)", strerror(errno));
|
tio_error_printf("Could not write to serial device (%s)", strerror(errno));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue