mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 18:42:53 +03:00
- separated curses.c out into separate source files to optimise
library use later on - some small mods to existing functions
This commit is contained in:
39
src/hci/mucurses/core.h
Normal file
39
src/hci/mucurses/core.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#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 */
|
||||
Reference in New Issue
Block a user