diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-11 06:26:04 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-11 06:26:39 -0400 |
| commit | d92bf1f7cf76d0c678ccbaea10a5ff6d41630e52 (patch) | |
| tree | d890d17b83013c6f0a975f8431d478eff94f5542 /src/edbox.c | |
| parent | ea47f06b8fa0ebab649ea1f7b323246d7e482438 (diff) | |
| download | fujinet-chat-d92bf1f7cf76d0c678ccbaea10a5ff6d41630e52.tar.gz | |
Remove server/nick prompts from client, add a separate config tool that loads as an init segment, with lots more options.
Diffstat (limited to 'src/edbox.c')
| -rw-r--r-- | src/edbox.c | 39 |
1 files changed, 0 insertions, 39 deletions
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; |
