aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-13 03:14:46 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-13 03:14:46 -0400
commitcdc45d44b4d96d147cda026df283a9bb0fcb3018 (patch)
treee68376ef9c9ba006195f182afe44606d9ec55b06 /src/main.c
parentfc503a1093f3d971e1bc2082122031a0761bd9ed (diff)
downloadfujinet-chat-cdc45d44b4d96d147cda026df283a9bb0fcb3018.tar.gz
fix keyclick for special keys
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index b62b456..ed310b6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -15,6 +15,7 @@
#include "screen.h"
#include "edbox.h"
#include "config.h"
+#include "keyclick.h"
unsigned char err; // error code of last operation.
unsigned char trip = 0; // if trip == 1, fujinet is asking us for attention.
@@ -129,7 +130,7 @@ void init_channels(void) {
}
}
-void reconnect_wait(void) {
+void reconnect(void) {
scr_display(SCR_SERVER);
scr_print_current("Press a key");
@@ -150,7 +151,10 @@ void reconnect_wait(void) {
while(OS.cdtmf3 == 0xff && OS.ch == 0xff)
/* NOP */;
- OS.ch = 0xff;
+ if(OS.ch != 0xff) {
+ keyclick();
+ OS.ch = 0xff;
+ }
}
void main(void) {
@@ -174,6 +178,6 @@ void main(void) {
irc_loop();
}
fn_disconnect();
- reconnect_wait();
+ reconnect();
}
}