We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cc225e commit 70c18d4Copy full SHA for 70c18d4
1 file changed
src/cli/cli.zig
@@ -203,9 +203,6 @@ fn draw(self: *CLI) !void {
203
204
fn userInput(self: *CLI) !void {
205
while (true) {
206
-
207
- // TODO: multi threading
208
- // TODO: non blocking IO
209
const INPUT = try STDIN.takeDelimiterExclusive('\n');
210
211
if (STD.mem.eql(u8, INPUT, "n")) {
@@ -230,7 +227,10 @@ fn userInput(self: *CLI) !void {
230
227
}
231
228
232
229
// TODO: reset using diff and patches
233
- if (STD.mem.eql(u8, INPUT, "x")) {}
+ if (STD.mem.eql(u8, INPUT, "x")) {
+ try clear(self);
+ try draw(self);
+ }
234
235
if (STD.mem.eql(u8, INPUT, "q")) {
236
try clear(self);
0 commit comments