summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorrcyeske <rcyeske>2001-02-19 20:45:11 +0000
committerrcyeske <rcyeske>2001-02-19 20:45:11 +0000
commit74f06e31b48eb29f7fa171b0aa14fdf30ace0f18 (patch)
tree5c38d04f337f9714d4c574de79e2a3a1da21375a /src/input.c
parent440e1f6484c68c6570890544738f142487dca819 (diff)
downloadratpoison-74f06e31b48eb29f7fa171b0aa14fdf30ace0f18.zip
added more_input routine
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/input.c b/src/input.c
index ffba346..41b4e2e 100644
--- a/src/input.c
+++ b/src/input.c
@@ -161,6 +161,12 @@ update_input_window (screen_info *s, char *prompt, char *input, int input_len)
char *
get_input (char *prompt)
{
+ return get_more_input (prompt, "");
+}
+
+char *
+get_more_input (char *prompt, char *preinput)
+{
screen_info *s = current_screen ();
int cur_len = 0; /* Current length of the string. */
int allocated_len=100; /* The amount of memory we allocated for str */
@@ -178,6 +184,10 @@ get_input (char *prompt)
exit (EXIT_FAILURE);
}
+ /* load in the preinput */
+ strcpy (str, preinput);
+ cur_len = strlen (preinput);
+
/* We don't want to draw overtop of the program bar. */
hide_bar (s);