47#define MENU_ROWS ( LINES - 2U - MENU_ROW )
48#define MENU_COLS ( COLS - 2U )
71 unsigned int row_offset;
97 memset ( buf,
' ', (
sizeof ( buf ) - 1 ) );
98 buf[
sizeof ( buf ) -1 ] =
'\0';
100 max_len = (
sizeof ( buf ) - 1 - ( 2 *
MENU_PAD ) );
107 snprintf ( timeout_buf,
sizeof ( timeout_buf ),
"(%ld)",
112 timeout_buf, timeout_len );
162 unsigned int previous;
238 }
while ( (
rc == 0 ) && ! chosen );
253 unsigned long retimeout,
const char *
select,
262 memset ( &ui, 0,
sizeof ( ui ) );
283 if ( ! named_count ) {
#define NULL
NULL pointer (VOID *)
union @162305117151260234136356364136041353210355154177 key
Sense key.
#define ESC
Escape character.
struct arbelprm_rc_send_wqe rc
#define assert(condition)
Assert a condition at run-time.
int erase(void)
Completely clear the screen.
#define mvprintw(y, x, fmt,...)
static int mvaddstr(int y, int x, const char *str)
static int move(int y, int x)
#define color_set(cpno, opts)
static int clrtoeol(void)
static int attroff(int attrs)
static int attron(int attrs)
struct dynamic_item * dynui_item(struct dynamic_ui *dynui, unsigned int index)
Find dynamic user interface item by index.
struct dynamic_item * dynui_shortcut(struct dynamic_ui *dynui, int key)
Find dynamic user interface item by shortcut key.
#define DYNUI_DEFAULT
Dynamic user interface item is default selection.
int getkey(unsigned long timeout)
Get single keypress.
#define CPAIR_SELECT
Highlighted text.
#define CPAIR_NORMAL
Normal text.
#define CPAIR_SEPARATOR
Unselectable text (e.g.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define ENOENT
No such file or directory.
#define ECANCELED
Operation canceled.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
#define TICKS_PER_SEC
Number of ticks per second.
void * memcpy(void *dest, const void *src, size_t len) __nonnull
void * memset(void *dest, int character, size_t len) __nonnull
#define list_for_each_entry(pos, head, member)
Iterate over entries in a list.
int curs_set(int visibility)
Set cursor visibility.
int select(fd_set *readfds, int wait)
Check file descriptors for readiness.
int strcmp(const char *first, const char *second)
Compare strings.
size_t strlen(const char *src)
Get length of string.
A dynamic user interface item.
A dynamic user interface.
struct list_head items
Dynamic user interface items.
int snprintf(char *buf, size_t size, const char *fmt,...)
Write a formatted string to a buffer.
WINDOW * initscr(void)
Initialise console environment.
int endwin(void)
Finalise console environment.