iPXE
Data Fields
_curses_screen Struct Reference

Curses SCREEN object. More...

#include <curses.h>

Data Fields

unsigned int curs_x
 Current cursor position.
unsigned int curs_y
attr_t attrs
 Current attribute.
void(* init )(struct _curses_screen *scr)
void(* exit )(struct _curses_screen *scr)
void(* erase )(struct _curses_screen *scr, attr_t attrs)
 Erase screen.
void(* movetoyx )(struct _curses_screen *scr, unsigned int y, unsigned int x)
 Move cursor to position specified by x,y coords.
void(* putc )(struct _curses_screen *scr, chtype c)
 Write character to current cursor position.
int(* getc )(struct _curses_screen *scr)
 Pop a character from the keyboard input stream.
bool(* peek )(struct _curses_screen *scr)
 Checks to see whether a character is waiting in the input stream.
void(* cursor )(struct _curses_screen *scr, int visibility)
 Set cursor visibility.

Detailed Description

Curses SCREEN object.

Definition at line 33 of file curses.h.


Field Documentation

unsigned int _curses_screen::curs_x

Current cursor position.

Definition at line 35 of file curses.h.

Referenced by ansiscr_movetoyx(), ansiscr_putc(), and ansiscr_reset().

unsigned int _curses_screen::curs_y

Definition at line 35 of file curses.h.

Referenced by ansiscr_movetoyx(), ansiscr_putc(), and ansiscr_reset().

Current attribute.

Definition at line 37 of file curses.h.

Referenced by ansiscr_attrs(), and ansiscr_reset().

void( * _curses_screen::init)(struct _curses_screen *scr)

Definition at line 39 of file curses.h.

void( * _curses_screen::exit)(struct _curses_screen *scr)

Definition at line 40 of file curses.h.

Erase screen.

Parameters:
scrscreen on which to operate
attrsattributes

Definition at line 47 of file curses.h.

void( * _curses_screen::movetoyx)(struct _curses_screen *scr, unsigned int y, unsigned int x)

Move cursor to position specified by x,y coords.

Parameters:
scrscreen on which to operate
yY position
xX position

Definition at line 55 of file curses.h.

Referenced by _wupdcurs().

void( * _curses_screen::putc)(struct _curses_screen *scr, chtype c)

Write character to current cursor position.

Parameters:
scrscreen on which to operate
ccharacter to be written

Definition at line 63 of file curses.h.

Referenced by _wputch().

int( * _curses_screen::getc)(struct _curses_screen *scr)

Pop a character from the keyboard input stream.

Parameters:
scrscreen on which to operate
Return values:
cpopped character

Definition at line 70 of file curses.h.

Referenced by _wgetc().

Checks to see whether a character is waiting in the input stream.

Parameters:
scrscreen on which to operate
Return values:
TRUEcharacter waiting in stream
FALSEno character waiting in stream

Definition at line 78 of file curses.h.

Referenced by _wgetc().

void( * _curses_screen::cursor)(struct _curses_screen *scr, int visibility)

Set cursor visibility.

Parameters:
scrscreen on which to operate
visibilitycursor visibility

Definition at line 85 of file curses.h.


The documentation for this struct was generated from the following file: