aboutsummaryrefslogtreecommitdiff
path: root/src/edbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/edbox.c')
-rw-r--r--src/edbox.c39
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;