diff options
| author | Lucas Faria Mendes <lucas.oliveira1676@etec.sp.gov.br> | 2025-12-05 07:25:02 +0000 |
|---|---|---|
| committer | Lucas Faria Mendes <lucas.oliveira1676@etec.sp.gov.br> | 2025-12-05 07:25:02 +0000 |
| commit | be0ae44ae362a4855ccf4d453ceeaef91f9ea460 (patch) | |
| tree | 1b4429367df7dda40fdb2aa31ee21d65df051aea /src | |
| parent | a5bc620142086b118af8324b4240295cb4859414 (diff) | |
| download | shell-zig-be0ae44ae362a4855ccf4d453ceeaef91f9ea460.tar.gz shell-zig-be0ae44ae362a4855ccf4d453ceeaef91f9ea460.zip | |
codecrafters submit [skip ci]
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 6922764..04d2026 100644 --- a/src/main.zig +++ b/src/main.zig @@ -74,6 +74,9 @@ fn readCommand(allocator: std.mem.Allocator) !?[]const u8 { try stdout.writeAll(" "); try buffer.appendSlice(allocator, remaining); try buffer.append(allocator, ' '); + } else { + // No completion found, ring the bell + try stdout.writeAll("\x07"); } } } else if ((c == 127 or c == 8) and is_tty) { |