diff options
author | jjanzen <jjanzen@jjanzen.ca> | 2025-01-22 11:34:53 -0600 |
---|---|---|
committer | jjanzen <jjanzen@jjanzen.ca> | 2025-01-22 11:34:53 -0600 |
commit | 275d7f14633be3a7b16e839a5864f4c2e5886b05 (patch) | |
tree | bd251cdb568275ce4f98a6dfbab704a6bbe18e2b /src/frontend | |
parent | 4438558931d634704b1f8d4af698afca3b5c4a1b (diff) |
prepare for generics
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/ncurses.zig | 3 |
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| { |