aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-16 03:06:19 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-16 03:06:19 -0400
commit545db9259365913f433f21f9c33f278fe96194d2 (patch)
tree8d8a3183bace932731357a3755023279861ebe75 /src/main.c
parent6d6c44d74e113ace4709f037316a2ec80753aa3a (diff)
downloadfujinet-chat-545db9259365913f433f21f9c33f278fe96194d2.tar.gz
Move screen statuses to the right, get rid of <>, add indicators for net activity and most-recent incoming IRC activity.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f807cb6..c844f09 100644
--- a/src/main.c
+++ b/src/main.c
@@ -18,6 +18,7 @@
#include "edbox.h"
#include "config.h"
#include "keyclick.h"
+#include "indic8.h"
unsigned char err; // error code of last operation.
unsigned char trip = 0; // if trip == 1, fujinet is asking us for attention.
@@ -76,7 +77,9 @@ void txbuf_send(void) {
if(tx_buf[txbuflen - 1] != '\n')
tx_buf[txbuflen++] = '\n';
+ ind_net_tx();
nwrite(conf->url, tx_buf, txbuflen);
+ ind_net_idle();
txbuf_init();
}
@@ -180,6 +183,7 @@ void main(void) {
while(1) {
edbox_callback = cmd_execute;
if(fn_connect()) {
+ ind_net_idle();
irc_register();
irc_loop();
}