aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-02-17 03:45:41 -0500
committerB. Watson <urchlay@slackware.uk>2026-02-17 03:45:41 -0500
commitf1bf0a483e917b67cf9db6483072db261f7688c3 (patch)
tree66fc917d1c224f891eb57a6a59710b73569482ba /src/cmd.c
parent4187e2f3bd0d12e37c494cb990bf4fbd7885555e (diff)
downloadfujinet-chat-f1bf0a483e917b67cf9db6483072db261f7688c3.tar.gz
Start welding the new UI code to the client. Compiles but doesn't work yet...
Diffstat (limited to 'src/cmd.c')
-rw-r--r--src/cmd.c8
1 files changed, 7 insertions, 1 deletions
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 <atari.h>
#include <stdio.h>
#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);
}