iPXE
Data Fields
_curses_screen Struct Reference

Curses SCREEN object. More...

#include <curses.h>

Data Fields

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

Detailed Description

Curses SCREEN object.

Definition at line 33 of file curses.h.

Field Documentation

◆ curs_x

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().

◆ curs_y

unsigned int _curses_screen::curs_y

Definition at line 35 of file curses.h.

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

◆ attrs

attr_t _curses_screen::attrs

Current attribute.

Definition at line 37 of file curses.h.

Referenced by ansiscr_attrs(), and ansiscr_reset().

◆ init

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

Definition at line 39 of file curses.h.

◆ exit

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

Definition at line 40 of file curses.h.

◆ erase

void( * _curses_screen::erase) (struct _curses_screen *scr, attr_t attrs)

Erase screen.

Parameters
scrscreen on which to operate
attrsattributes

Definition at line 47 of file curses.h.

◆ movetoyx

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().

◆ putc

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().

◆ getc

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().

◆ peek

bool( * _curses_screen::peek) (struct _curses_screen *scr)

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().

◆ cursor

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: