Extract reading of input i/o to input

And add the ability of other modules to listen to either
the final result (a `Key`) or tap into the input as it is read
This commit is contained in:
Alexander Heldt
2025-11-20 17:00:36 +01:00
parent b69852f7ba
commit 249b0671e4
7 changed files with 98 additions and 46 deletions

View File

@@ -3,7 +3,7 @@ import gleam/result
import gleam/string
import input/key.{type Key}
import mpv/internal/control as internal_control
import mpv/internal as internal_control
import tcp/reason.{type Reason}
import tcp/tcp.{type Socket}