From d92bf1f7cf76d0c678ccbaea10a5ff6d41630e52 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 11 Mar 2026 06:26:04 -0400 Subject: Remove server/nick prompts from client, add a separate config tool that loads as an init segment, with lots more options. --- src/edbox.c | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'src/edbox.c') diff --git a/src/edbox.c b/src/edbox.c index 167bdc2..efbd19d 100644 --- a/src/edbox.c +++ b/src/edbox.c @@ -57,45 +57,6 @@ void edbox_putc(char c) { edbox_show(); } -void edbox_append(char *s) { - while(*s) - edit_box[edbox_pos++] = *s++; - edbox_len = edbox_pos; -} - -void edbox_preset(char *s) { - edbox_clear(); - edbox_append(s); -} - -static char readline_done, readline_len; -static char *readline_dest; -static void readline_callback(void) { - strncpy(readline_dest, edit_box, readline_len); - readline_done = 1; -} - -void edbox_readline(char *dest, char len) { - void (*old_callback)(void); - - edbox_clear(); - if(*dest) - edbox_preset(dest); - edbox_show(); - - old_callback = edbox_callback; - edbox_callback = readline_callback; - readline_dest = dest; - readline_len = len; - - readline_done = 0; - - while(!readline_done) - edbox_keystroke(); - - edbox_callback = old_callback; -} - static void special_keystroke(char c) { keyclick(); OS.ch = 0xff; -- cgit v1.2.3