Compare commits

3 Commits

Author SHA1 Message Date
Alexander Heldt
747f76a584 Add ability to listen (tap) the input
By doing something like
```
fn input_output_loop(input_output: Subject(List(String))) -> Nil {
  let output = process.receive_forever(input_output)

  echo output

  input_output_loop(input_output)
}
```
2025-11-19 18:20:36 +01:00
Alexander Heldt
a6ac9eb5f7 Add ability to inject characters into the input 2025-11-19 18:20:36 +01:00
Alexander Heldt
4d935a2e29 Add ability to create character sequences as Input 2025-11-19 18:20:35 +01:00

View File

@@ -30,7 +30,6 @@ pub fn key_from_list_test() {
TestCase([ii], key.Continue([ii])),
TestCase([ii, "a"], key.Continue([ii, "a"])),
TestCase([ii, "a", "b"], key.Continue([ii, "ab"])),
TestCase([ii, "ab", "\u{007F}"], key.Continue([ii, "a"])),
TestCase([ii, "ab", "\r"], key.Input("ab")),
]