fix(tui): handle batched input over SSH with StdinBuffer
Adds StdinBuffer class (adapted from OpenTUI, MIT license) to split batched stdin into individual sequences before they reach components. This fixes key presses being dropped when batched with release events, which commonly occurs over SSH due to network buffering. - Each handleInput() call now receives a single event - matchesKey() and isKeyRelease() work correctly without batching awareness - Properly buffers incomplete escape sequences across chunks - Handles bracketed paste mode Addresses #538
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
### Added
|
||||
|
||||
- `EditorComponent` interface for custom editor implementations
|
||||
- `StdinBuffer` class to split batched stdin into individual sequences (adapted from [OpenTUI](https://github.com/anomalyco/opentui), MIT license)
|
||||
|
||||
### Fixed
|
||||
|
||||
- Key presses no longer dropped when batched with other events over SSH ([#538](https://github.com/badlogic/pi-mono/pull/538))
|
||||
|
||||
## [0.37.8] - 2026-01-07
|
||||
|
||||
|
||||
Reference in New Issue
Block a user