From d1271c8612d23d8ae36783e83ffbb697013b9967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pier-Luc=20Th=C3=A9riault?= Date: Tue, 30 Dec 2025 14:07:34 -0500 Subject: [PATCH] Send remainder of tty_buffer before exiting for piped input --- src/tty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tty.c b/src/tty.c index 1c486b5..16a1067 100644 --- a/src/tty.c +++ b/src/tty.c @@ -2668,6 +2668,7 @@ int tty_connect(void) // Exit if piped input if (interactive_mode == false) { + tty_sync(device_fd); exit(EXIT_SUCCESS); }