46 #define MENU_ROWS ( LINES - 2U - MENU_ROW ) 47 #define MENU_COLS ( COLS - 2U ) 86 unsigned int row_offset;
112 memset ( buf,
' ', (
sizeof ( buf ) - 1 ) );
113 buf[
sizeof ( buf ) -1 ] =
'\0';
122 snprintf ( timeout_buf,
sizeof ( timeout_buf ),
"(%ld)",
127 timeout_buf, timeout_len );
177 unsigned int previous;
260 }
while ( (
rc == 0 ) && ! chosen );
278 int labelled_count = 0;
282 memset ( &ui, 0,
sizeof ( ui ) );
288 if ( ! labelled_count )
301 if ( ! labelled_count ) {
int getkey(unsigned long timeout)
Get single keypress.
struct arbelprm_rc_send_wqe rc
#define TICKS_PER_SEC
Number of ticks per second.
int erase(void)
Completely clear the screen.
uint16_t max_len
Maximum length (in bytes)
static int attroff(int attrs)
int endwin(void)
Finalise console environment.
#define ENOENT
No such file or directory.
#define mvprintw(y, x, fmt,...)
#define ECANCELED
Operation canceled.
#define CPAIR_NORMAL
Normal text.
void * memcpy(void *dest, const void *src, size_t len) __nonnull
WINDOW * initscr(void)
Initialise console environment.
assert((readw(&hdr->flags) &(GTF_reading|GTF_writing))==0)
#define list_for_each_entry(pos, head, member)
Iterate over entries in a list.
#define ESC
Escape character.
static int clrtoeol(void)
size_t strlen(const char *src)
Get length of string.
int select(fd_set *readfds, int wait)
Check file descriptors for readiness.
#define CPAIR_SEPARATOR
Unselectable text (e.g.
int curs_set(int visibility)
Set cursor visibility.
int strcmp(const char *first, const char *second)
Compare strings.
static int move(int y, int x)
#define CPAIR_SELECT
Highlighted text.
int snprintf(char *buf, size_t size, const char *fmt,...)
Write a formatted string to a buffer.
#define color_set(cpno, opts)
uint64_t index
Index of the first segment within the content.
#define NULL
NULL pointer (VOID *)
static int mvaddstr(int y, int x, const char *str)
static int attron(int attrs)
void * memset(void *dest, int character, size_t len) __nonnull