Use tty_write to write piped input to tty

This commit is contained in:
Pier-Luc Thériault 2025-12-26 15:35:06 -05:00
parent 6fb3a64ba2
commit 8e6d77407e

View file

@ -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));