aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/ncurses.zig
diff options
context:
space:
mode:
authorjjanzen <jjanzen@jjanzen.ca>2025-01-22 11:34:53 -0600
committerjjanzen <jjanzen@jjanzen.ca>2025-01-22 11:34:53 -0600
commit275d7f14633be3a7b16e839a5864f4c2e5886b05 (patch)
treebd251cdb568275ce4f98a6dfbab704a6bbe18e2b /src/frontend/ncurses.zig
parent4438558931d634704b1f8d4af698afca3b5c4a1b (diff)
prepare for generics
Diffstat (limited to 'src/frontend/ncurses.zig')
-rw-r--r--src/frontend/ncurses.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frontend/ncurses.zig b/src/frontend/ncurses.zig
index 9b626b3..dfbf276 100644
--- a/src/frontend/ncurses.zig
+++ b/src/frontend/ncurses.zig
@@ -1,4 +1,5 @@
//! This module provides an implementation of IO using the ncurses library.
+const io_interface = @import("io_interface.zig");
const std = @import("std");
const Action = @import("../actions.zig").Action;
const ncurses = @cImport({
@@ -119,7 +120,7 @@ pub const IO = struct {
/// Display a message in the message box.
/// Takes a pre-formatted null-terminated string
/// If the message is too wide for the box, display "Message too long" instead.
- pub fn displayMessage(self: *IO, str: []const u8) !void {
+ pub fn displayMessage(self: *IO, str: []const u8) error{OutOfMemory}!void {
if (self.msgs == null) return;
for (1..MESSAGE_PANEL_WIDTH - 1) |i| {