From 48feffd829f30d393b39ae1cbdc7bf3eddca7652 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 18 Feb 2026 13:08:23 -0500 Subject: WIP, still not working. --- src/edbox.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'src/edbox.h') diff --git a/src/edbox.h b/src/edbox.h index ad70cc6..a410cec 100644 --- a/src/edbox.h +++ b/src/edbox.h @@ -4,11 +4,32 @@ #define EDBOX_SIZE 160 +/* clear the contents of the edit box (whether it's visible or not) */ void edbox_clear(void); + +/* make the edit box visible */ void edbox_show(void); + +/* make the edit box go away (current screen's status lines display instead) */ void edbox_hide(void); + +/* put one character into the edit box. */ void edbox_putc(char c); + +/* wait for a keystroke, insert its character into the edit box. if Return + is pressed, edbox_callback gets called (if it's set!) */ void edbox_keystroke(void); -/* called when the user presses Enter */ +/* append a string to the edit box. */ +void edbox_append(char *s); + +/* explicitly set the edit box's contents. wipes out whatever was there + before. */ +void edbox_preset(char *s); + +/* read a complete line into the edit box; doesn't return until the user + pressed Return. copies it to dest, up to len characters. */ +void edbox_readline(char *dest, char len); + +/* called when the user presses Return */ extern void (*edbox_callback)(void); -- cgit v1.2.3