aboutsummaryrefslogtreecommitdiffstats
path: root/src/include
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
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')
-rw-r--r--src/include/ipxe/errfile.h1
-rw-r--r--src/include/ipxe/shell_banner.h14
-rw-r--r--src/include/usr/prompt.h14
3 files changed, 15 insertions, 14 deletions
diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h
index 01de5600e..7968c4f51 100644
--- a/src/include/ipxe/errfile.h
+++ b/src/include/ipxe/errfile.h
@@ -237,6 +237,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define ERRFILE_gdbstub_cmd ( ERRFILE_OTHER | 0x001f0000 )
#define ERRFILE_sanboot_cmd ( ERRFILE_OTHER | 0x00200000 )
#define ERRFILE_bofm ( ERRFILE_OTHER | 0x00210000 )
+#define ERRFILE_prompt ( ERRFILE_OTHER | 0x00220000 )
/** @} */
diff --git a/src/include/ipxe/shell_banner.h b/src/include/ipxe/shell_banner.h
deleted file mode 100644
index d03fcbace..000000000
--- a/src/include/ipxe/shell_banner.h
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef _IPXE_SHELL_BANNER_H
-#define _IPXE_SHELL_BANNER_H
-
-/** @file
- *
- * Shell startup banner
- *
- */
-
-FILE_LICENCE ( GPL2_OR_LATER );
-
-extern int shell_banner ( void );
-
-#endif /* _IPXE_SHELL_BANNER_H */
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 */