diff options
Diffstat (limited to 'src/Messages.zig')
| -rw-r--r-- | src/Messages.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Messages.zig b/src/Messages.zig index f400df54..90bedd6f 100644 --- a/src/Messages.zig +++ b/src/Messages.zig @@ -382,6 +382,7 @@ pub fn reportError(p: *Pardes, id: usize, operation: []const u8, err: anyerror) pub fn errorWords(err: anyerror, buf: []u8) []const u8 { return switch (err) { error.FileTooLarge => "too large", + error.NoTerminal => pardes.Term.none, error.NotAFile => "not a regular file", // In the words a mount turns into EISDIR and EACCES (cloud9.fs.enameErrno). error.IsDirectory => "is a directory", @@ -575,6 +576,7 @@ test "the message log keeps what the row forgets, and collapses repeats" { } test "Msg writes the transient row by hand, bare or with text, and input ends it" { + if (pardes.Term.ops == null) return error.SkipZigTest; // the classic boot's three shells const p = try Pardes.init(std.testing.allocator, .{ .shells = 3, .cols = 100, .rows = 30 }); defer p.deinit(); while (p.nextEffect()) |_| {} @@ -747,6 +749,7 @@ test "messages stack, oldest on top, each on its own timing" { } test "a builtin announces itself on the message row, and Verbose silences it" { + if (pardes.Term.ops == null) return error.SkipZigTest; // a terminal's tag row const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 24 }); defer p.deinit(); const pane = p.panes[p.view().active].?; |
