summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorMichael Brown2011-03-07 18:42:06 +0100
committerMichael Brown2011-03-07 20:53:53 +0100
commitc4b6c244b0cc0380451c6f087e8d009f3f490926 (patch)
tree2bc13ef8ef452691ace42742f6efd787d4895718 /src/include/usr
parent[console] Add a timeout parameter to getkey() (diff)
downloadipxe-c4b6c244b0cc0380451c6f087e8d009f3f490926.tar.gz
ipxe-c4b6c244b0cc0380451c6f087e8d009f3f490926.tar.xz
ipxe-c4b6c244b0cc0380451c6f087e8d009f3f490926.zip
[prompt] Replace shell_banner() with a generic prompt() function
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/usr')
-rw-r--r--src/include/usr/prompt.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/usr/prompt.h b/src/include/usr/prompt.h
new file mode 100644
index 00000000..fc1946c7
--- /dev/null
+++ b/src/include/usr/prompt.h
@@ -0,0 +1,14 @@
+#ifndef _USR_PROMPT_H
+#define _USR_PROMPT_H
+
+/** @file
+ *
+ * Prompt for keypress
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+extern int prompt ( const char *text, unsigned int wait_ms, int key );
+
+#endif /* _USR_PROMPT_H */