aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-22 04:50:51 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-22 04:50:51 -0400
commit57fdf0bc1f50e75800d3ca2e14bace577161bdaf (patch)
treecea05724e5e831f2ccf3639136b947d75f7cf766 /src
parentfa9c7b244b646c214c2bbf9ab0c50499cc3858dd (diff)
downloadfujinet-chat-57fdf0bc1f50e75800d3ca2e14bace577161bdaf.tar.gz
Delay net polling during rapid typing, add ^X (same as ctrl-del).
Diffstat (limited to 'src')
-rw-r--r--src/edbox.c1
-rw-r--r--src/irc.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/src/edbox.c b/src/edbox.c
index 049771d..2eaaf78 100644
--- a/src/edbox.c
+++ b/src/edbox.c
@@ -197,6 +197,7 @@ static void normal_keystroke(void) {
del_to_end();
break;
case CH_DEL:
+ case 0x18: /* ^X */
if(!edbox_len)
edbox_hide();
else
diff --git a/src/irc.c b/src/irc.c
index c07e666..d9f19aa 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -1020,6 +1020,7 @@ static void keystroke(void) {
txbuf_send_str("AWAY");
irc_away = 0;
}
+ OS.cdtmv3 = hz / 3;
if(GTIA_READ.consol == 6 || start_latch) { /* start pressed */
start_keystroke();
} else {
@@ -1045,6 +1046,8 @@ void irc_loop(void) {
if(!irc_read() || !service_minute_timer()) {
return;
}
- keystroke();
+ do {
+ keystroke();
+ } while(OS.cdtmv3);
}
}