aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend')
-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| {