tty: add todo for incomplete parsing

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
This commit is contained in:
Tim Culverhouse 2024-01-21 13:16:52 -06:00
parent 244ad8b68e
commit 8caa67d5b3

View file

@ -133,7 +133,9 @@ pub fn run(
while (start < n) {
const result = try parser.parse(buf[start..n]);
start = result.n;
log.debug("something {}", .{result});
// TODO: if we get 0 byte read, copy the remaining bytes to the
// beginning of the buffer and read mmore?
const event = result.event orelse continue;
switch (event) {
.key_press => |key| {