Adds opt-in support for applications that need to read piped data from stdin while still receiving interactive keyboard input (#1094)

Enables applications to read piped data while maintaining interactive
keyboard input by redirecting stdin to /dev/tty when explicitly enabled.


Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
Harri Pehkonen
2025-10-19 08:17:28 -07:00
committed by GitHub
parent a0ce9bf55d
commit 1d0913bfb9
7 changed files with 356 additions and 12 deletions

View File

@@ -27,6 +27,12 @@ Next
- Remove dependency on 'pthread'.
### Component
- Feature: POSIX Piped Input Handling.
- Allows FTXUI applications to read data from stdin (when piped) while still receiving keyboard input from the terminal.
- Enabled by default.
- Can be disabled using `ScreenInteractive::HandlePipedInput(false)`.
- Only available on Linux and macOS.
Thanks @HarryPehkonen for PR #1094.
- Fix ScreenInteractive::FixedSize screen stomps on the preceding terminal
output. Thanks @zozowell in #1064.
- Fix vertical `ftxui::Slider`. The "up" key was previously decreasing the