From f1bf0a483e917b67cf9db6483072db261f7688c3 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 17 Feb 2026 03:45:41 -0500 Subject: Start welding the new UI code to the client. Compiles but doesn't work yet... --- src/cmd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/cmd.c') diff --git a/src/cmd.c b/src/cmd.c index 3c7f482..1eccdf5 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1,6 +1,8 @@ #include #include #include "irc.h" +#include "addrs.h" +#include "screen.h" void cmd_chan_text(const char *cmd) { txbuf_set_str("PRIVMSG "); @@ -15,5 +17,9 @@ void cmd_command(const char *cmd) { txbuf_send_str(cmd + 1); else if(channel[0]) cmd_chan_text(cmd); - else ui_print("*** You are not on a channel\n"); + else scr_print(SCR_CURR, "*** You are not on a channel\n"); +} + +void cmd_execute(void) { + cmd_command(edit_box); } -- cgit v1.2.3