tty: add todo for incomplete parsing
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
This commit is contained in:
parent
244ad8b68e
commit
8caa67d5b3
1 changed files with 3 additions and 1 deletions
|
@ -133,7 +133,9 @@ pub fn run(
|
||||||
while (start < n) {
|
while (start < n) {
|
||||||
const result = try parser.parse(buf[start..n]);
|
const result = try parser.parse(buf[start..n]);
|
||||||
start = result.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;
|
const event = result.event orelse continue;
|
||||||
switch (event) {
|
switch (event) {
|
||||||
.key_press => |key| {
|
.key_press => |key| {
|
||||||
|
|
Loading…
Reference in a new issue