diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-02-17 03:45:41 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-02-17 03:45:41 -0500 |
| commit | f1bf0a483e917b67cf9db6483072db261f7688c3 (patch) | |
| tree | 66fc917d1c224f891eb57a6a59710b73569482ba /src/cmd.c | |
| parent | 4187e2f3bd0d12e37c494cb990bf4fbd7885555e (diff) | |
| download | fujinet-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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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); } |
