aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2011-03-07 17:42:06 +0000
committerMichael Brown <mcb30@ipxe.org>2011-03-07 19:53:53 +0000
commitc4b6c244b0cc0380451c6f087e8d009f3f490926 (patch)
tree2bc13ef8ef452691ace42742f6efd787d4895718 /src/include/usr
parent9d633bdc7113f0050a0b35df5245dee2b819a273 (diff)
downloadipxe-c4b6c244b0cc0380451c6f087e8d009f3f490926.tar.gz
[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 000000000..fc1946c7a
--- /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 */