david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/hci/mucurses/core.h

40 lines
912 B
C
Raw Normal View History

#ifndef CORE_H
#define CORE_H
#define WRAP 0
#define NOWRAP 1
unsigned short _COLS;
unsigned short _LINES;
unsigned short _COLOURS;
unsigned int *_COLOUR_PAIRS; /* basically this is an array, but as its
length is determined only when initscr
is run, I can only think to make it a
pointer and malloc the array into being
... */
struct _softlabel {
// label string
char *label;
/* Format of soft label
0: left justify
1: centre justify
2: right justify
*/
unsigned short fmt;
};
struct _softlabelkeys {
struct _softlabel fkeys[12];
attr_t attrs;
unsigned short fmt;
unsigned short maxlablen;
};
void _wputch ( WINDOW *win, chtype ch, int wrap );
void _wputchstr ( WINDOW *win, const chtype *chstr, int wrap, int n );
void _wputstr ( WINDOW *win, const char *str, int wrap, int n );
int wmove ( WINDOW *win, int y, int x );
#endif /* CURSES_H */