iPXE
|
MuCurses core functions. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static void | _wupdcurs (WINDOW *win) |
Update cursor position. More... | |
void | _wputch (WINDOW *win, chtype ch, int wrap) |
Write a single character rendition to a window. More... | |
void | _wputc (WINDOW *win, char c, int wrap) |
Write a single character to a window. More... | |
void | _wcursback (WINDOW *win) |
Retreat the cursor back one position (useful for a whole host of ops) More... | |
void | _wputchstr (WINDOW *win, const chtype *chstr, int wrap, int n) |
Write a chtype string to a window. More... | |
void | _wputstr (WINDOW *win, const char *str, int wrap, int n) |
Write a standard c-style string to a window. More... | |
int | wmove (WINDOW *win, int y, int x) |
Move a window's cursor to the specified position. More... | |
int | curs_set (int visibility) |
Set cursor visibility. More... | |
Variables | |
WINDOW | _stdscr |
MuCurses core functions.
Definition in file mucurses.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Update cursor position.
*win | window in which to update position |
Definition at line 38 of file mucurses.c.
References _curses_window::curs_x, _curses_window::curs_y, _curses_screen::movetoyx, _curses_window::ori_x, _curses_window::ori_y, and _curses_window::scr.
Referenced by _wcursback(), _wputch(), and wmove().
Write a single character rendition to a window.
*win | window in which to write |
ch | character rendition to write |
wrap | wrap "switch" |
Definition at line 50 of file mucurses.c.
References _wupdcurs(), ch, _curses_window::curs_x, _curses_window::curs_y, _curses_window::height, _curses_screen::putc, _curses_window::scr, _curses_window::width, and WRAP.
Referenced by _printw_handler(), _wgetc(), _wputc(), _wputchstr(), delwin(), slk_restore(), waddch(), wborder(), wgetch(), whline(), and wvline().
void _wputc | ( | WINDOW * | win, |
char | c, | ||
int | wrap | ||
) |
Write a single character to a window.
*win | window in which to write |
c | character rendition to write |
wrap | wrap "switch" |
Definition at line 77 of file mucurses.c.
References _wputch(), _curses_window::attrs, and c.
Referenced by _wputstr(), wclrtobot(), wclrtoeol(), and wdelch().
void _wcursback | ( | WINDOW * | win | ) |
Retreat the cursor back one position (useful for a whole host of ops)
*win | window in which to retreat |
Definition at line 87 of file mucurses.c.
References _wupdcurs(), _curses_window::curs_x, _curses_window::curs_y, _curses_window::height, and _curses_window::width.
Referenced by wdelch(), wgetch(), and wgetnstr().
Write a chtype string to a window.
*win | window in which to write |
*chstr | chtype string |
wrap | wrap "switch" |
n | write at most n chtypes |
Definition at line 107 of file mucurses.c.
References _wputch().
Referenced by waddchnstr().
void _wputstr | ( | WINDOW * | win, |
const char * | str, | ||
int | wrap, | ||
int | n | ||
) |
Write a standard c-style string to a window.
*win | window in which to write |
*str | string |
wrap | wrap "switch" |
n | write at most n chars from *str |
Definition at line 121 of file mucurses.c.
References _wputc().
Referenced by _print_label(), and waddnstr().
int wmove | ( | WINDOW * | win, |
int | y, | ||
int | x | ||
) |
Move a window's cursor to the specified position.
*win | window to be operated on |
y | Y position |
x | X position |
rc | return status code |
Definition at line 135 of file mucurses.c.
References _wupdcurs(), _curses_window::curs_x, _curses_window::curs_y, ERR, _curses_window::height, OK, _curses_window::width, cursor_pos::x, and cursor_pos::y.
Referenced by _enter_slk(), _restore_curs_pos(), delwin(), move(), mvaddch(), mvaddchnstr(), mvaddchstr(), mvaddnstr(), mvaddstr(), mvdelch(), mvgetch(), mvgetnstr(), mvgetstr(), mvhline(), mvvline(), mvwaddch(), mvwaddchnstr(), mvwaddchstr(), mvwaddnstr(), mvwaddstr(), mvwdelch(), mvwgetch(), mvwgetnstr(), mvwgetstr(), mvwhline(), mvwvline(), wborder(), wdeleteln(), werase(), and wvline().
int curs_set | ( | int | visibility | ) |
Set cursor visibility.
visibility | cursor visibility |
Definition at line 153 of file mucurses.c.
Referenced by endwin(), main_loop(), settings_ui(), and show_menu().
WINDOW _stdscr |
Definition at line 20 of file mucurses.c.