[prompt] Replace shell_banner() with a generic prompt() function

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2011-03-07 17:42:06 +00:00
parent 9d633bdc71
commit c4b6c244b0
5 changed files with 64 additions and 37 deletions

View File

@@ -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 )
/** @} */

View File

@@ -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 */

14
src/include/usr/prompt.h Normal file
View File

@@ -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 */