mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
[prompt] Replace shell_banner() with a generic prompt() function
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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 )
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
@@ -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
14
src/include/usr/prompt.h
Normal 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 */
|
||||
Reference in New Issue
Block a user