puter/packages
Sam Atkins 072dbe8db5 Make BetterReader buffer and cancel, to fix stdin data loss
BetterReader.read_with_cancel() returns both the read promise, and a
function that can be used to cancel the read. A cancelled read is
placed back into the BetterReader's chunk buffer, to be consumed by the
next user that requests a read.

This is used by Coupler so that when the coupler is closed, its pending
read() call does not consume the next batch of input.

This fixes the problem we were having with child applications consuming
one chunk of stdin after they are closed, meaning the first key you
press after an app exits would disappear.

Co-authored-by: KernelDeimos <eric.alex.dube@gmail.com>
2024-04-19 15:52:59 +01:00
..
backend Optimize console redraw by tracking widget changes 2024-04-19 00:48:36 -07:00
phoenix Make BetterReader buffer and cancel, to fix stdin data loss 2024-04-19 15:52:59 +01:00
puter-js Let AppConnection know if its target app uses the Puter SDK 2024-04-19 15:52:59 +01:00
puter-js-common Release backend 2024-03-30 19:08:03 -04:00
terminal Phoenix: Wait for apps to finish executing, and connect stdio to them 2024-04-19 15:52:59 +01:00