iPXE
Data Structures | Defines | Typedefs | Functions | Variables
curses.h File Reference

MuCurses header file. More...

#include <stdint.h>
#include <stdbool.h>
#include <stdarg.h>
#include <ipxe/console.h>
#include <ipxe/keys.h>

Go to the source code of this file.

Data Structures

struct  _curses_screen
 Curses SCREEN object. More...
struct  _curses_window
 Curses Window struct. More...

Defines

#define ERR   (-1)
#define FALSE   (0)
#define OK   (0)
#define TRUE   (1)
#define stdscr   ( &_stdscr )
#define COLS   console_width
#define LINES   console_height
#define MUCURSES_BITS(mask, shift)   (( mask ) << (shift))
#define CPAIR_SHIFT   8
#define ATTRS_SHIFT   16
#define WA_DEFAULT   ( 0x0000 << ATTRS_SHIFT )
#define WA_ALTCHARSET   ( 0x0001 << ATTRS_SHIFT )
#define WA_BLINK   ( 0x0002 << ATTRS_SHIFT )
#define WA_BOLD   ( 0x0004 << ATTRS_SHIFT )
#define WA_DIM   ( 0x0008 << ATTRS_SHIFT )
#define WA_INVIS   ( 0x0010 << ATTRS_SHIFT )
#define WA_PROTECT   ( 0x0020 << ATTRS_SHIFT )
#define WA_REVERSE   ( 0x0040 << ATTRS_SHIFT )
#define WA_STANDOUT   ( 0x0080 << ATTRS_SHIFT )
#define WA_UNDERLINE   ( 0x0100 << ATTRS_SHIFT )
#define WA_HORIZONTAL   ( 0x0200 << ATTRS_SHIFT )
#define WA_VERTICAL   ( 0x0400 << ATTRS_SHIFT )
#define WA_LEFT   ( 0x0800 << ATTRS_SHIFT )
#define WA_RIGHT   ( 0x1000 << ATTRS_SHIFT )
#define WA_LOW   ( 0x2000 << ATTRS_SHIFT )
#define WA_TOP   ( 0x4000 << ATTRS_SHIFT )
#define A_DEFAULT   WA_DEFAULT
#define A_ALTCHARSET   WA_ALTCHARSET
#define A_BLINK   WA_BLINK
#define A_BOLD   WA_BOLD
#define A_DIM   WA_DIM
#define A_INVIS   WA_INVIS
#define A_PROTECT   WA_PROTECT
#define A_REVERSE   WA_REVERSE
#define A_STANDOUT   WA_STANDOUT
#define A_UNDERLINE   WA_UNDERLINE
#define A_ATTRIBUTES   ( 0xffff << ATTRS_SHIFT )
#define A_CHARTEXT   ( 0xff )
#define A_COLOUR   ( 0xff << CPAIR_SHIFT )
#define A_COLOR   A_COLOUR
#define COLOUR_PAIR(n)   ( (n) << CPAIR_SHIFT )
#define COLOR_PAIR(n)   COLOUR_PAIR(n)
#define PAIR_NUMBER(attrs)   ( ( (attrs) & A_COLOUR ) >> CPAIR_SHIFT )
#define COLOUR_PAIRS   8 /* Arbitrary limit */
#define COLOR_PAIRS   COLOUR_PAIRS
#define ACS_ULCORNER   '+'
#define ACS_LLCORNER   '+'
#define ACS_URCORNER   '+'
#define ACS_LRCORNER   '+'
#define ACS_RTEE   '+'
#define ACS_LTEE   '+'
#define ACS_BTEE   '+'
#define ACS_TTEE   '+'
#define ACS_HLINE   '-'
#define ACS_VLINE   '|'
#define ACS_PLUS   '+'
#define ACS_S1   '-'
#define ACS_S9   '_'
#define ACS_DIAMOND   '+'
#define ACS_CKBOARD   ':'
#define ACS_DEGREE   '\''
#define ACS_PLMINUS   '#'
#define ACS_BULLET   'o'
#define ACS_LARROW   '<'
#define ACS_RARROW   '>'
#define ACS_DARROW   'v'
#define ACS_UARROW   '^'
#define ACS_BOARD   '#'
#define ACS_LANTERN   '#'
#define ACS_BLOCK   '#'
#define COLOUR_BLACK   0
#define COLOUR_RED   1
#define COLOUR_GREEN   2
#define COLOUR_YELLOW   3
#define COLOUR_BLUE   4
#define COLOUR_MAGENTA   5
#define COLOUR_CYAN   6
#define COLOUR_WHITE   7
#define COLOURS   7
#define COLOUR_FG   30
#define COLOUR_BG   40
#define COLOR_FG   COLOUR_FG
#define COLOR_BG   COLOUR_BG
#define COLOR_BLACK   COLOUR_BLACK
#define COLOR_BLUE   COLOUR_BLUE
#define COLOR_GREEN   COLOUR_GREEN
#define COLOR_CYAN   COLOUR_CYAN
#define COLOR_RED   COLOUR_RED
#define COLOR_MAGENTA   COLOUR_MAGENTA
#define COLOR_YELLOW   COLOUR_YELLOW
#define COLOR_WHITE   COLOUR_WHITE
#define COLORS   COLOURS
#define can_change_color()   can_change_colour()
#define color_content(c, r, g, b)   colour_content( (c), (r), (g), (b) )
#define color_set(cpno, opts)   colour_set( (cpno), (opts) )
#define init_color   ( c, r, g, b ) init_colour ( (c), (r), (g), (b) )
#define slk_color(c)   slk_colour( (c) )
#define start_color()   start_colour()
#define wcolor_set(w, s, v)   wcolour_set((w),(s),(v))
#define mvprintw(y, x, fmt,...)
#define mvwprintw(win, y, x, fmt,...)
#define printw(fmt,...)   wprintw(stdscr,(fmt), ## __VA_ARGS__ )
#define standend()   wstandend( stdscr )
#define standout()   wstandout( stdscr )

Typedefs

typedef uint32_t chtype
typedef uint32_t attr_t
typedef struct _curses_screen SCREEN
 Curses SCREEN object.
typedef struct _curses_window WINDOW
 Curses Window struct.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
int baudrate (void)
int beep (void)
 Audible signal.
int box (WINDOW *, chtype, chtype) __nonnull
 Draw borders from single-byte characters and renditions around a window.
int cbreak (void)
int colour_content (short, short *, short *, short *) __nonnull
 Identify the RGB components of a given colour value.
int copywin (const WINDOW *, WINDOW *, int, int, int, int, int, int, int)
int curs_set (int)
 Set cursor visibility.
int def_prog_mode (void)
int def_shell_mode (void)
int delay_output (int)
void delscreen (SCREEN *)
int delwin (WINDOW *) __nonnull
 Delete a window.
WINDOWderwin (WINDOW *, int, int, int, int) __nonnull
 Create a new derived window.
WINDOWdupwin (WINDOW *) __nonnull
 Create a duplicate of the specified window.
int echo (void)
int echochar (const chtype)
int endwin (void)
 Finalise console environment.
char erasechar (void)
int erase (void)
 Completely clear the screen.
void filter (void)
int flash (void)
int flushinp (void)
__pure chtype getbkgd (WINDOW *) __nonnull
 Get the background rendition attributes for a window.
int halfdelay (int)
bool has_ic (void)
bool has_il (void)
void idcok (WINDOW *, bool)
int idlok (WINDOW *, bool)
WINDOWinitscr (void)
 Initialise console environment.
int init_colour (short, short, short, short)
int init_pair (short, short, short)
 Initialise colour pair.
int intrflush (WINDOW *, bool)
bool isendwin (void)
char * keyname (int)
int keypad (WINDOW *, bool)
char killchar (void)
int leaveok (WINDOW *, bool)
char * longname (void)
int meta (WINDOW *, bool)
int mvcur (int, int, int, int)
int mvderwin (WINDOW *, int, int)
int mvwin (WINDOW *, int, int) __nonnull
 Move window origin to specified coordinates.
int napms (int)
WINDOWnewwin (int, int, int, int)
 Create new WINDOW.
int nl (void)
int nocbreak (void)
int nodelay (WINDOW *, bool)
int noecho (void)
int nonl (void)
void noqiflush (void)
int noraw (void)
int notimeout (WINDOW *, bool)
int overlay (const WINDOW *, WINDOW *)
int overwrite (const WINDOW *, WINDOW *)
int pair_content (short, short *, short *) __nonnull
 Get colours of colour pair.
int printw (char *,...)
int putp (const char *)
void qiflush (void)
int raw (void)
int reset_prog_mode (void)
int reset_shell_mode (void)
int resetty (void)
int ripoffline (int, int(*)(WINDOW *, int))
int savetty (void)
SCREENset_term (SCREEN *)
int setupterm (char *, int, int *)
int slk_attr_off (const attr_t, void *)
int slk_attroff (const chtype)
 Turn off soft function key attributes.
int slk_attr_on (const attr_t, void *)
int slk_attron (const chtype)
 Turn on soft function key attributes.
int slk_attr_set (const attr_t, short, void *)
int slk_attrset (const chtype)
 Set soft function key attributes.
int slk_clear (void)
 Clear the soft function key labels from the screen.
int slk_colour (short)
 Set soft label colour pair.
int slk_init (int)
 Initialise the soft function keys.
char * slk_label (int)
 Return the label for the specified soft key.
int slk_noutrefresh (void)
int slk_restore (void)
 Restore soft function key labels to the screen.
int slk_set (int, const char *, int) __nonnull
 Configure specified soft key.
int slk_touch (void)
WINDOWsubwin (WINDOW *, int, int, int, int) __nonnull
 Create a new sub-window.
int syncok (WINDOW *, bool)
chtype termattrs (void)
attr_t term_attrs (void)
char * termname (void)
int tigetflag (char *)
int tigetnum (char *)
char * tigetstr (char *)
void timeout (int)
char * tparm (char *, long, long, long, long, long, long, long, long, long)
int typeahead (int)
void use_env (bool)
int vid_attr (attr_t, short, void *)
int vidattr (chtype)
int vid_puts (attr_t, short, void *, int(*)(int))
int vidputs (chtype, int(*)(int))
int vw_printw (WINDOW *, const char *, va_list) __nonnull
 Print formatted output in a window.
int waddch (WINDOW *, const chtype) __nonnull
 Add a single-byte character and rendition to a window and advance the cursor.
int waddchnstr (WINDOW *, const chtype *, int) __nonnull
 Add string of single-byte characters and renditions to a window.
int waddnstr (WINDOW *, const char *, int) __nonnull
 Add string of single-byte characters to a window.
int wattroff (WINDOW *, int) __nonnull
 Turn off attributes in a window.
int wattron (WINDOW *, int) __nonnull
 Turn on attributes in a window.
int wattrset (WINDOW *, int) __nonnull
 Set attributes in a window.
int wattr_get (WINDOW *, attr_t *, short *, void *)
int wattr_off (WINDOW *, attr_t, void *)
int wattr_on (WINDOW *, attr_t, void *)
int wattr_set (WINDOW *, attr_t, short, void *)
int wborder (WINDOW *, chtype, chtype, chtype, chtype, chtype, chtype, chtype, chtype) __nonnull
 Draw borders from single-byte characters and renditions around a window.
int wclrtobot (WINDOW *) __nonnull
 Clear a window to the bottom from current cursor position.
int wclrtoeol (WINDOW *) __nonnull
 Clear a window to the end of the current line.
void wcursyncup (WINDOW *)
int wcolour_set (WINDOW *, short, void *)
int wdelch (WINDOW *) __nonnull
 Delete character under the cursor in a window.
int wdeleteln (WINDOW *) __nonnull
 Delete line under a window's cursor.
int wechochar (WINDOW *, const chtype)
int werase (WINDOW *) __nonnull
 Completely clear a window.
int wgetch (WINDOW *)
 Pop a character from the FIFO into a window.
int wgetnstr (WINDOW *, char *, int)
 Read at most n characters from the FIFO into a window.
int whline (WINDOW *, chtype, int) __nonnull
 Create a horizontal line in a window.
int wmove (WINDOW *, int, int)
 Move a window's cursor to the specified position.
int wprintw (WINDOW *, const char *,...) __nonnull
 Print formatted output to a window.
void wsyncup (WINDOW *)
void wsyncdown (WINDOW *)
void wtimeout (WINDOW *, int)
int wvline (WINDOW *, chtype, int) __nonnull
 Create a vertical line in a window.
static int addch (const chtype ch)
static int addchnstr (const chtype *chstr, int n)
static int addchstr (const chtype *chstr)
static int addnstr (const char *str, int n)
static int addstr (const char *str)
static int attroff (int attrs)
static int attron (int attrs)
static int attrset (int attrs)
static int attr_get (attr_t *attrs, short *pair, void *opts)
static int attr_off (attr_t attrs, void *opts)
static int attr_on (attr_t attrs, void *opts)
static int attr_set (attr_t attrs, short cpair, void *opts)
static void bkgdset (chtype ch)
static int border (chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br)
static bool can_change_colour (void)
static int clrtobot (void)
static int clrtoeol (void)
static int colour_set (short colour_pair_number, void *opts)
static int delch (void)
static int deleteln (void)
static int getch (void)
static int getnstr (char *str, int n)
static int getstr (char *str)
static bool has_colors (void)
static int has_key (int kc __unused)
static int hline (chtype ch, int n)
static int move (int y, int x)
static int mvaddch (int y, int x, const chtype ch)
static int mvaddchnstr (int y, int x, const chtype *chstr, int n)
static int mvaddchstr (int y, int x, const chtype *chstr)
static int mvaddnstr (int y, int x, const char *str, int n)
static int mvaddstr (int y, int x, const char *str)
static int mvdelch (int y, int x)
static int mvgetch (int y, int x)
static int mvgetnstr (int y, int x, char *str, int n)
static int mvgetstr (int y, int x, char *str)
static int mvhline (int y, int x, chtype ch, int n)
static int mvvline (int y, int x, chtype ch, int n)
static int mvwaddch (WINDOW *win, int y, int x, const chtype ch)
static int mvwaddchnstr (WINDOW *win, int y, int x, const chtype *chstr, int n)
static int mvwaddchstr (WINDOW *win, int y, int x, const chtype *chstr)
static int mvwaddnstr (WINDOW *win, int y, int x, const char *str, int n)
static int mvwaddstr (WINDOW *win, int y, int x, const char *str)
static int mvwdelch (WINDOW *win, int y, int x)
static int mvwgetch (WINDOW *win, int y, int x)
static int mvwgetnstr (WINDOW *win, int y, int x, char *str, int n)
static int mvwgetstr (WINDOW *win, int y, int x, char *str)
static int mvwhline (WINDOW *win, int y, int x, chtype ch, int n)
static int mvwvline (WINDOW *win, int y, int x, chtype ch, int n)
static int slk_refresh (void)
static int start_colour (void)
static int vline (chtype ch, int n)
static int vwprintw (WINDOW *win, const char *fmt, va_list varglist)
static int waddchstr (WINDOW *win, const chtype *chstr)
static int waddstr (WINDOW *win, const char *str)
static int wbkgdset (WINDOW *win, chtype ch)
static int wgetstr (WINDOW *win, char *str)
static int wstandend (WINDOW *win)
static int wstandout (WINDOW *win)

Variables

WINDOW _stdscr

Detailed Description

MuCurses header file.

Definition in file curses.h.


Define Documentation

#define ERR   (-1)
#define FALSE   (0)

Definition at line 21 of file curses.h.

Referenced by can_change_colour().

#define OK   (0)
#define TRUE   (1)

Definition at line 27 of file curses.h.

Referenced by has_colors(), and has_key().

#define stdscr   ( &_stdscr )
#define COLS   console_width
#define LINES   console_height

Definition at line 112 of file curses.h.

#define MUCURSES_BITS (   mask,
  shift 
)    (( mask ) << (shift))

Definition at line 114 of file curses.h.

#define CPAIR_SHIFT   8

Definition at line 115 of file curses.h.

Referenced by slk_attr_set(), and slk_colour().

#define ATTRS_SHIFT   16

Definition at line 116 of file curses.h.

#define WA_DEFAULT   ( 0x0000 << ATTRS_SHIFT )

Definition at line 118 of file curses.h.

#define WA_ALTCHARSET   ( 0x0001 << ATTRS_SHIFT )

Definition at line 119 of file curses.h.

#define WA_BLINK   ( 0x0002 << ATTRS_SHIFT )

Definition at line 120 of file curses.h.

#define WA_BOLD   ( 0x0004 << ATTRS_SHIFT )

Definition at line 121 of file curses.h.

#define WA_DIM   ( 0x0008 << ATTRS_SHIFT )

Definition at line 122 of file curses.h.

#define WA_INVIS   ( 0x0010 << ATTRS_SHIFT )

Definition at line 123 of file curses.h.

#define WA_PROTECT   ( 0x0020 << ATTRS_SHIFT )

Definition at line 124 of file curses.h.

#define WA_REVERSE   ( 0x0040 << ATTRS_SHIFT )

Definition at line 125 of file curses.h.

#define WA_STANDOUT   ( 0x0080 << ATTRS_SHIFT )

Definition at line 126 of file curses.h.

#define WA_UNDERLINE   ( 0x0100 << ATTRS_SHIFT )

Definition at line 127 of file curses.h.

#define WA_HORIZONTAL   ( 0x0200 << ATTRS_SHIFT )

Definition at line 128 of file curses.h.

#define WA_VERTICAL   ( 0x0400 << ATTRS_SHIFT )

Definition at line 129 of file curses.h.

#define WA_LEFT   ( 0x0800 << ATTRS_SHIFT )

Definition at line 130 of file curses.h.

#define WA_RIGHT   ( 0x1000 << ATTRS_SHIFT )

Definition at line 131 of file curses.h.

#define WA_LOW   ( 0x2000 << ATTRS_SHIFT )

Definition at line 132 of file curses.h.

#define WA_TOP   ( 0x4000 << ATTRS_SHIFT )

Definition at line 133 of file curses.h.

#define A_DEFAULT   WA_DEFAULT

Definition at line 135 of file curses.h.

Referenced by slk_init(), and wstandend().

Definition at line 136 of file curses.h.

#define A_BLINK   WA_BLINK

Definition at line 137 of file curses.h.

#define A_BOLD   WA_BOLD
#define A_DIM   WA_DIM

Definition at line 139 of file curses.h.

#define A_INVIS   WA_INVIS

Definition at line 140 of file curses.h.

#define A_PROTECT   WA_PROTECT

Definition at line 141 of file curses.h.

#define A_REVERSE   WA_REVERSE

Definition at line 142 of file curses.h.

#define A_STANDOUT   WA_STANDOUT

Definition at line 143 of file curses.h.

Referenced by wstandout().

#define A_UNDERLINE   WA_UNDERLINE

Definition at line 144 of file curses.h.

#define A_ATTRIBUTES   ( 0xffff << ATTRS_SHIFT )
#define A_CHARTEXT   ( 0xff )

Definition at line 147 of file curses.h.

Referenced by ansiscr_putc().

#define A_COLOUR   ( 0xff << CPAIR_SHIFT )

Definition at line 148 of file curses.h.

#define A_COLOR   A_COLOUR

Definition at line 149 of file curses.h.

Referenced by ansiscr_putc(), and wattrset().

#define COLOUR_PAIR (   n)    ( (n) << CPAIR_SHIFT )

Definition at line 151 of file curses.h.

Referenced by wattr_set(), and wcolour_set().

#define COLOR_PAIR (   n)    COLOUR_PAIR(n)

Definition at line 152 of file curses.h.

#define PAIR_NUMBER (   attrs)    ( ( (attrs) & A_COLOUR ) >> CPAIR_SHIFT )

Definition at line 153 of file curses.h.

Referenced by ansiscr_attrs(), and wattr_get().

#define COLOUR_PAIRS   8 /* Arbitrary limit */

Definition at line 155 of file curses.h.

Referenced by init_pair(), pair_content(), and wcolour_set().

#define COLOR_PAIRS   COLOUR_PAIRS

Definition at line 156 of file curses.h.

#define ACS_ULCORNER   '+'

Definition at line 158 of file curses.h.

#define ACS_LLCORNER   '+'

Definition at line 159 of file curses.h.

#define ACS_URCORNER   '+'

Definition at line 160 of file curses.h.

#define ACS_LRCORNER   '+'

Definition at line 161 of file curses.h.

#define ACS_RTEE   '+'

Definition at line 162 of file curses.h.

#define ACS_LTEE   '+'

Definition at line 163 of file curses.h.

#define ACS_BTEE   '+'

Definition at line 164 of file curses.h.

#define ACS_TTEE   '+'

Definition at line 165 of file curses.h.

#define ACS_HLINE   '-'

Definition at line 166 of file curses.h.

#define ACS_VLINE   '|'

Definition at line 167 of file curses.h.

#define ACS_PLUS   '+'

Definition at line 168 of file curses.h.

#define ACS_S1   '-'

Definition at line 169 of file curses.h.

#define ACS_S9   '_'

Definition at line 170 of file curses.h.

#define ACS_DIAMOND   '+'

Definition at line 171 of file curses.h.

#define ACS_CKBOARD   ':'

Definition at line 172 of file curses.h.

#define ACS_DEGREE   '\''

Definition at line 173 of file curses.h.

#define ACS_PLMINUS   '#'

Definition at line 174 of file curses.h.

#define ACS_BULLET   'o'

Definition at line 175 of file curses.h.

#define ACS_LARROW   '<'

Definition at line 176 of file curses.h.

#define ACS_RARROW   '>'

Definition at line 177 of file curses.h.

#define ACS_DARROW   'v'

Definition at line 178 of file curses.h.

#define ACS_UARROW   '^'

Definition at line 179 of file curses.h.

#define ACS_BOARD   '#'

Definition at line 180 of file curses.h.

#define ACS_LANTERN   '#'

Definition at line 181 of file curses.h.

#define ACS_BLOCK   '#'

Definition at line 182 of file curses.h.

#define COLOUR_BLACK   0

Definition at line 184 of file curses.h.

#define COLOUR_RED   1

Definition at line 185 of file curses.h.

Referenced by colour_content().

#define COLOUR_GREEN   2

Definition at line 186 of file curses.h.

Referenced by colour_content().

#define COLOUR_YELLOW   3

Definition at line 187 of file curses.h.

#define COLOUR_BLUE   4

Definition at line 188 of file curses.h.

Referenced by colour_content().

#define COLOUR_MAGENTA   5

Definition at line 189 of file curses.h.

#define COLOUR_CYAN   6

Definition at line 190 of file curses.h.

#define COLOUR_WHITE   7

Definition at line 191 of file curses.h.

#define COLOURS   7

Definition at line 192 of file curses.h.

#define COLOUR_FG   30

Definition at line 194 of file curses.h.

#define COLOUR_BG   40

Definition at line 195 of file curses.h.

#define COLOR_FG   COLOUR_FG

Definition at line 196 of file curses.h.

#define COLOR_BG   COLOUR_BG

Definition at line 197 of file curses.h.

#define COLOR_BLACK   COLOUR_BLACK

Definition at line 199 of file curses.h.

#define COLOR_BLUE   COLOUR_BLUE

Definition at line 200 of file curses.h.

#define COLOR_GREEN   COLOUR_GREEN

Definition at line 201 of file curses.h.

#define COLOR_CYAN   COLOUR_CYAN

Definition at line 202 of file curses.h.

#define COLOR_RED   COLOUR_RED

Definition at line 203 of file curses.h.

Definition at line 204 of file curses.h.

Definition at line 205 of file curses.h.

#define COLOR_WHITE   COLOUR_WHITE

Definition at line 206 of file curses.h.

#define COLORS   COLOURS

Definition at line 207 of file curses.h.

Referenced by slk_attr_set(), and slk_colour().

#define can_change_color ( )    can_change_colour()

Definition at line 233 of file curses.h.

#define color_content (   c,
  r,
  g,
 
)    colour_content( (c), (r), (g), (b) )

Definition at line 238 of file curses.h.

#define color_set (   cpno,
  opts 
)    colour_set( (cpno), (opts) )
#define init_color   ( c, r, g, b ) init_colour ( (c), (r), (g), (b) )

Definition at line 279 of file curses.h.

#define slk_color (   c)    slk_colour( (c) )

Definition at line 385 of file curses.h.

#define start_color ( )    start_colour()

Definition at line 396 of file curses.h.

Referenced by login_ui(), pxe_menu_select(), settings_ui(), and show_menu().

#define wcolor_set (   w,
  s,
 
)    wcolour_set((w),(s),(v))

Definition at line 448 of file curses.h.

#define mvprintw (   y,
  x,
  fmt,
  ... 
)
Value:
( wmove(stdscr,(y),(x)) == OK \
          ? wprintw( stdscr,(fmt), ## __VA_ARGS__ ) : ERR )

Definition at line 648 of file curses.h.

Referenced by draw_setting_row(), endwin(), login_ui(), pxe_menu_draw_item(), show_menu(), and vmsg().

#define mvwprintw (   win,
  y,
  x,
  fmt,
  ... 
)
Value:
( wmove((win),(y),(x)) == OK \
          ? wprintw((win),(fmt), ## __VA_ARGS__) : ERR )

Definition at line 707 of file curses.h.

Referenced by draw_editbox().

#define printw (   fmt,
  ... 
)    wprintw(stdscr,(fmt), ## __VA_ARGS__ )

Definition at line 716 of file curses.h.

int standend ( )    wstandend( stdscr )

Definition at line 725 of file curses.h.

int standout ( )    wstandout( stdscr )

Definition at line 726 of file curses.h.


Typedef Documentation

typedef uint32_t chtype

Definition at line 29 of file curses.h.

typedef uint32_t attr_t

Definition at line 30 of file curses.h.

typedef struct _curses_screen SCREEN

Curses SCREEN object.

typedef struct _curses_window WINDOW

Curses Window struct.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
int baudrate ( void  )
int beep ( void  )

Audible signal.

Return values:
rcreturn status code

Definition at line 17 of file alert.c.

References OK, and printf().

Referenced by wgetch(), and wgetnstr().

                  {
        printf("\a");
        return OK;
}
int box ( WINDOW win,
chtype  verch,
chtype  horch 
)

Draw borders from single-byte characters and renditions around a window.

Parameters:
*winwindow to be bordered
verchvertical chtype
horchhorizontal chtype
Return values:
rcreturn status code

Definition at line 22 of file edging.c.

References _curses_window::attrs, and wborder().

                                                    {
        chtype corner = '+' | win->attrs; /* default corner character */
        return wborder( win, verch, verch, horch, horch,
                        corner, corner, corner, corner );
}
int cbreak ( void  )
int colour_content ( short  colour,
short *  red,
short *  green,
short *  blue 
)

Identify the RGB components of a given colour value.

Parameters:
colourcolour value
*redaddress to store red component
*greenaddress to store green component
*blueaddress to store blue component
Return values:
rcreturn status code

Definition at line 23 of file colour.c.

References COLOUR_BLUE, COLOUR_GREEN, COLOUR_RED, and OK.

                                                                           {
        *red = ( ( colour & COLOUR_RED ) ? 1 : 0 );
        *green = ( ( colour & COLOUR_GREEN ) ? 1 : 0 );
        *blue = ( ( colour & COLOUR_BLUE ) ? 1 : 0 );
        return OK;
}
int copywin ( const WINDOW ,
WINDOW ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int   
)
int curs_set ( int  visibility)

Set cursor visibility.

Parameters:
visibilitycursor visibility

Definition at line 153 of file mucurses.c.

References OK, and stdscr.

Referenced by endwin(), main_loop(), settings_ui(), and show_menu().

                                {
        stdscr->scr->cursor ( stdscr->scr, visibility );
        return OK;
}
int def_prog_mode ( void  )
int def_shell_mode ( void  )
int delay_output ( int  )
void delscreen ( SCREEN )
int delwin ( WINDOW win)

Delete a window.

Parameters:
*winpointer to window being deleted
Return values:
rcreturn status code

Definition at line 20 of file windows.c.

References _wputch(), _curses_window::curs_x, _curses_window::curs_y, free, OK, stdscr, wmove(), and WRAP.

                           {
        /* I think we should blank the region covered by the window -
           ncurses doesn't do this, but they have a buffer, so they
           may just be deleting from an offscreen context whereas we
           are guaranteed to be deleting something onscreen */
        wmove( win, 0, 0 );
        chtype killch = (chtype)' ';
        do {
                _wputch( win, killch, WRAP );
        } while ( win->curs_x + win->curs_y );

        free( win );

        wmove ( stdscr, 0, 0 );

        return OK;
}
WINDOW* derwin ( WINDOW parent,
int  nlines,
int  ncols,
int  begin_y,
int  begin_x 
)

Create a new derived window.

Parameters:
parentparent window
nlineswindow height
ncolswindow width
begin_ywindow y origin (relative to parent)
begin_xwindow x origin (relative to parent)
Return values:
ptrreturn pointer to child window

Definition at line 48 of file windows.c.

References _curses_window::height, malloc(), NULL, _curses_window::ori_x, _curses_window::ori_y, _curses_window::parent, _curses_window::scr, and _curses_window::width.

                                                            {
        WINDOW *child;
        if ( ( (unsigned)ncols > parent->width ) || 
             ( (unsigned)nlines > parent->height ) )
                return NULL;
        if ( ( child = malloc( sizeof( WINDOW ) ) ) == NULL )
                return NULL;
        child->ori_y = parent->ori_y + begin_y;
        child->ori_x = parent->ori_x + begin_x;
        child->height = nlines;
        child->width = ncols;
        child->parent = parent;
        child->scr = parent->scr;
        return child;
}
WINDOW* dupwin ( WINDOW orig)

Create a duplicate of the specified window.

Parameters:
origoriginal window
Return values:
ptrpointer to duplicate window

Definition at line 71 of file windows.c.

References _curses_window::attrs, _curses_window::curs_x, _curses_window::curs_y, _curses_window::height, malloc(), NULL, _curses_window::ori_x, _curses_window::ori_y, _curses_window::scr, and _curses_window::width.

                                {
        WINDOW *copy;
        if ( ( copy = malloc( sizeof( WINDOW ) ) ) == NULL )
                return NULL;
        copy->scr = orig->scr;
        copy->attrs = orig->attrs;
        copy->ori_y = orig->ori_y;
        copy->ori_x = orig->ori_x;
        copy->curs_y = orig->curs_y;
        copy->curs_x = orig->curs_x;
        copy->height = orig->height;
        copy->width = orig->width;
        return copy;
}
int echo ( void  )
int echochar ( const chtype  )
int endwin ( void  )

Finalise console environment.

Definition at line 31 of file wininit.c.

References attrset(), color_set, curs_set(), LINES, mvprintw, NULL, OK, and stdscr.

Referenced by login_ui(), pxe_menu_select(), settings_ui(), and show_menu().

                    {
        attrset ( 0 );
        color_set ( 0, NULL );
        curs_set ( 1 );
        mvprintw ( ( LINES - 1 ), 0, "\n" );
        stdscr->scr->exit( stdscr->scr );
        return OK;
}
char erasechar ( void  )
int erase ( void  )

Completely clear the screen.

Return values:
rcreturn status code

Definition at line 97 of file clear.c.

References OK, and stdscr.

Referenced by login_ui(), settings_ui(), and show_menu().

                   {
        stdscr->scr->erase( stdscr->scr, stdscr->attrs );
        return OK;
}
void filter ( void  )
int flash ( void  )

Referenced by bnx2_init_nvram().

int flushinp ( void  )
__pure chtype getbkgd ( WINDOW win) [inline]

Get the background rendition attributes for a window.

Parameters:
*winsubject window
Return values:
chchtype rendition representation

Definition at line 17 of file winattrs.c.

References _curses_window::attrs.

                                      {
        return win->attrs;
}
int halfdelay ( int  )
bool has_ic ( void  )
bool has_il ( void  )
void idcok ( WINDOW ,
bool   
)
int idlok ( WINDOW ,
bool   
)
WINDOW* initscr ( void  )

Initialise console environment.

Return values:
*winreturn pointer to stdscr

Definition at line 17 of file wininit.c.

References COLS, LINES, move(), and stdscr.

Referenced by login_ui(), pxe_menu_select(), settings_ui(), and show_menu().

                         {
        /* determine console size */
        /* initialise screen */
        stdscr->scr->init( stdscr->scr );
        stdscr->height = LINES;
        stdscr->width = COLS;
        move ( 0, 0 );
        return stdscr;
}
int init_colour ( short  ,
short  ,
short  ,
short   
)
int init_pair ( short  pair,
short  fcol,
short  bcol 
)

Initialise colour pair.

Parameters:
paircolour pair number
fcolforeground colour
bcolbackground colour

Definition at line 37 of file colour.c.

References colour_pair::bcol, COLOUR_PAIRS, ERR, colour_pair::fcol, and OK.

                                                     {
        struct colour_pair *cpair;

        if ( ( pair < 1 ) || ( pair >= COLOUR_PAIRS ) )
                return ERR;
        
        cpair = &cpairs[pair];
        cpair->fcol = fcol;
        cpair->bcol = bcol;
        return OK;
}
int intrflush ( WINDOW ,
bool   
)
bool isendwin ( void  )
char* keyname ( int  )
int keypad ( WINDOW ,
bool   
)

Referenced by usbkbd_map().

char killchar ( void  )
int leaveok ( WINDOW ,
bool   
)
char* longname ( void  )
int meta ( WINDOW ,
bool   
)

Referenced by fcpcmd_deliver().

int mvcur ( int  ,
int  ,
int  ,
int   
)
int mvderwin ( WINDOW ,
int  ,
int   
)
int mvwin ( WINDOW win,
int  y,
int  x 
)

Move window origin to specified coordinates.

Parameters:
*winwindow to move
yY position
xX position
Return values:
rcreturn status code

Definition at line 94 of file windows.c.

References COLS, ERR, _curses_window::height, LINES, OK, _curses_window::ori_x, _curses_window::ori_y, and _curses_window::width.

                                        {
        if ( ( ( (unsigned)y + win->height ) > LINES ) ||
             ( ( (unsigned)x + win->width ) > COLS ) )
                return ERR;

        win->ori_y = y;
        win->ori_x = x;

        return OK;
}
int napms ( int  )
WINDOW* newwin ( int  nlines,
int  ncols,
int  begin_y,
int  begin_x 
)

Create new WINDOW.

Parameters:
nlinesnumber of lines
ncolsnumber of columns
begin_ycolumn origin
begin_xline origin
Return values:
*winreturn pointer to new window

Definition at line 114 of file windows.c.

References _curses_window::height, malloc(), NULL, _curses_window::ori_x, _curses_window::ori_y, _curses_window::parent, _curses_window::scr, stdscr, and _curses_window::width.

Referenced by subwin().

                                                                   {
        WINDOW *win;
        if ( ( (unsigned)( begin_y + nlines ) > stdscr->height ) &&
             ( (unsigned)( begin_x + ncols ) > stdscr->width ) )
                return NULL;
        if ( ( win = malloc( sizeof(WINDOW) ) ) == NULL )
                return NULL;
        win->ori_y = begin_y;
        win->ori_x = begin_x;
        win->height = nlines;
        win->width = ncols;
        win->scr = stdscr->scr;
        win->parent = stdscr;
        return win;
}
int nl ( void  )
int nocbreak ( void  )
int nodelay ( WINDOW ,
bool   
)
int noecho ( void  )

Definition at line 141 of file kb.c.

References FALSE, m_echo, and OK.

                    {
        m_echo = FALSE;
        return OK;
}
int nonl ( void  )
void noqiflush ( void  )
int noraw ( void  )
int notimeout ( WINDOW ,
bool   
)
int overlay ( const WINDOW ,
WINDOW  
)
int overwrite ( const WINDOW ,
WINDOW  
)
int pair_content ( short  pair,
short *  fcol,
short *  bcol 
)

Get colours of colour pair.

Parameters:
paircolour pair number
Return values:
fcolforeground colour
bcolbackground colour

Definition at line 56 of file colour.c.

References colour_pair::bcol, COLOUR_PAIRS, ERR, colour_pair::fcol, and OK.

                                                          {
        struct colour_pair *cpair;

        if ( ( pair < 0 ) || ( pair >= COLOUR_PAIRS ) )
                return ERR;
        
        cpair = &cpairs[pair];
        *fcol = cpair->fcol;
        *bcol = cpair->bcol;
        return OK;
}
int printw ( char *  ,
  ... 
)

Referenced by draw_menu_item().

int putp ( const char *  )
void qiflush ( void  )
int raw ( void  )
int reset_prog_mode ( void  )
int reset_shell_mode ( void  )
int resetty ( void  )
int ripoffline ( int  ,
int(*)(WINDOW *, int)   
)
int savetty ( void  )
int setupterm ( char *  ,
int  ,
int *   
)
int slk_attr_off ( const attr_t  ,
void *   
)
int slk_attroff ( const chtype  attrs)

Turn off soft function key attributes.

Parameters:
attrsattribute bit mask
Return values:
rcreturn status code

Definition at line 128 of file slk.c.

References A_ATTRIBUTES, _softlabelkeys::attrs, ERR, NULL, and OK.

Referenced by slk_attr_off().

                                       {
        if ( slks == NULL ) 
                return ERR;
        slks->attrs &= ~( attrs & A_ATTRIBUTES );
        return OK;
}
int slk_attr_on ( const attr_t  ,
void *   
)
int slk_attron ( const chtype  attrs)

Turn on soft function key attributes.

Parameters:
attrsattribute bit mask
Return values:
rcreturn status code

Definition at line 141 of file slk.c.

References A_ATTRIBUTES, _softlabelkeys::attrs, ERR, NULL, and OK.

Referenced by slk_attr_on().

                                      {
        if ( slks == NULL )
                return ERR;
        slks->attrs |= ( attrs & A_ATTRIBUTES );
        return OK;
}
int slk_attr_set ( const attr_t  ,
short  ,
void *   
)
int slk_attrset ( const chtype  attrs)

Set soft function key attributes.

Parameters:
attrsattribute bit mask
Return values:
rcreturn status code

Definition at line 154 of file slk.c.

References A_ATTRIBUTES, _softlabelkeys::attrs, ERR, NULL, and OK.

                                       {
        if ( slks == NULL ) 
                return ERR;
        slks->attrs = ( attrs & A_ATTRIBUTES );
        return OK;
}
int slk_clear ( void  )

Clear the soft function key labels from the screen.

Return values:
rcreturn status code

Definition at line 209 of file slk.c.

References _enter_slk(), _leave_slk(), ERR, NULL, OK, stdscr, and wclrtoeol().

Referenced by slk_refresh().

                       {
        if ( slks == NULL )
                return ERR;

        _enter_slk();
        wclrtoeol ( stdscr );
        _leave_slk();

        return OK;
}
int slk_colour ( short  )

Set soft label colour pair.

Definition at line 223 of file slk.c.

References A_ATTRIBUTES, _softlabelkeys::attrs, COLORS, CPAIR_SHIFT, ERR, NULL, and OK.

                                            {
        if ( slks == NULL ) 
                return ERR;
        if ( ( unsigned short )colour_pair_number > COLORS )
                return ERR;

        slks->attrs = ( (unsigned short)colour_pair_number << CPAIR_SHIFT )
                | ( slks->attrs & A_ATTRIBUTES );

        return OK;
}
int slk_init ( int  fmt)

Initialise the soft function keys.

Parameters:
fmtformat of keys
Return values:
rcreturn status code

Definition at line 241 of file slk.c.

References A_DEFAULT, _softlabelkeys::attrs, calloc(), COLS, ERR, _softlabelkeys::fmt, fmt, LINES, _softlabelkeys::maj_space_len, _softlabelkeys::max_label_len, MIN_SPACE_SIZE, _softlabelkeys::num_labels, _softlabelkeys::num_spaces, OK, and _softlabelkeys::spaces.

                         {
        unsigned short nmaj, nmin, nblocks, available_width;

        if ( (unsigned)fmt > 3 ) {
                return ERR;
        }

        /* There seems to be no API call to free this data structure... */
        if ( ! slks )
                slks = calloc(1,sizeof(*slks));
        if ( ! slks )
                return ERR;

        slks->attrs = A_DEFAULT;
        slks->fmt = fmt;
        switch(fmt) {
        case 0:
                nblocks = 8; nmaj = 2; nmin = 5;
                slks->spaces[0] = 2; slks->spaces[1] = 4;
                break;
        case 1:
                nblocks = 8; nmaj = 1; nmin = 6;
                slks->spaces[0] = 3;
                break;
        case 2:
                // same allocations as format 3
        case 3:
                nblocks = 12; nmaj = 2; nmin = 9;
                slks->spaces[0] = 3; slks->spaces[1] = 7;
                break;
        default:
                return ERR;
        }

        // determine maximum label length and major space size
        available_width = COLS - ( ( MIN_SPACE_SIZE * nmaj ) + nmin );
        slks->max_label_len = available_width / nblocks;
        slks->maj_space_len = MIN_SPACE_SIZE + 
                ( available_width % nblocks ) / nmaj;
        slks->num_spaces = nmaj;
        slks->num_labels = nblocks;

        // strip a line from the screen
        LINES -= 1;

        return OK;
}
char* slk_label ( int  labnum)

Return the label for the specified soft key.

Parameters:
labnumsoft key identifier
Return values:
labelreturn label

Definition at line 295 of file slk.c.

References _softlabelkeys::fkeys, _softlabel::label, and NULL.

                               {
        if ( slks == NULL ) 
                return NULL;

        return slks->fkeys[labnum].label;
}
int slk_noutrefresh ( void  )
int slk_restore ( void  )

Restore soft function key labels to the screen.

Return values:
rcreturn status code

Definition at line 307 of file slk.c.

References _enter_slk(), _leave_slk(), _print_label(), _wputch(), _softlabelkeys::attrs, COLS, ERR, _softlabelkeys::fkeys, _softlabelkeys::maj_space_len, _softlabelkeys::max_label_len, NOWRAP, NULL, _softlabelkeys::num_labels, _softlabelkeys::num_spaces, OK, _softlabelkeys::spaces, and stdscr.

Referenced by slk_refresh().

                         {
        unsigned int i, j, pos_x,
                *next_space, *last_space;
        chtype space_ch;

        if ( slks == NULL )
                return ERR;

        pos_x = 0;

        _enter_slk();

        space_ch = (chtype)' ' | slks->attrs;
        next_space = &(slks->spaces[0]);
        last_space = &(slks->spaces[slks->num_spaces-1]);

        for ( i = 0; i < slks->num_labels ; i++ ) {
                _print_label( slks->fkeys[i] );
                pos_x += slks->max_label_len;

                if ( i == *next_space ) {
                        for ( j = 0; j < slks->maj_space_len; j++, pos_x++ )
                                _wputch ( stdscr, space_ch, NOWRAP );
                        if ( next_space < last_space )
                                next_space++;
                } else {
                        if ( pos_x < COLS )
                                _wputch ( stdscr, space_ch, NOWRAP );
                        pos_x++;
                }
        }

        _leave_slk();

        return OK;
}
int slk_set ( int  labnum,
const char *  label,
int  fmt 
)

Configure specified soft key.

Parameters:
labnumsoft label position to configure
*labelstring to use as soft key label
fmtjustification format of label
Return values:
rcreturn status code

Definition at line 352 of file slk.c.

References ERR, _softlabelkeys::fkeys, _softlabel::fmt, fmt, _softlabel::label, NULL, _softlabelkeys::num_labels, OK, and strncpy().

                                                       {
        if ( slks == NULL ) 
                return ERR;
        if ( (unsigned short)labnum >= slks->num_labels )
                return ERR;
        if ( (unsigned short)fmt >= 3 )
                return ERR;

        strncpy(slks->fkeys[labnum].label, label,
                (sizeof(slks->fkeys[labnum].label) - 1));
        slks->fkeys[labnum].fmt = fmt;

        return OK;
}
int slk_touch ( void  )
WINDOW* subwin ( WINDOW parent,
int  nlines,
int  ncols,
int  begin_y,
int  begin_x 
)

Create a new sub-window.

Parameters:
origparent window
nlineswindow height
ncolswindow width
begin_ywindow y origin (absolute)
begin_xwindow x origin (absolute)
Return values:
ptrreturn pointer to child window

Definition at line 140 of file windows.c.

References newwin(), _curses_window::parent, and _curses_window::scr.

                                                            {
        WINDOW *child;
        child = newwin( nlines, ncols, begin_y, begin_x );
        child->parent = parent;
        child->scr = parent->scr;
        return child;
}
int syncok ( WINDOW ,
bool   
)
chtype termattrs ( void  )
attr_t term_attrs ( void  )
char* termname ( void  )
int tigetflag ( char *  )
int tigetnum ( char *  )
char* tigetstr ( char *  )
void timeout ( int  )
char* tparm ( char *  ,
long  ,
long  ,
long  ,
long  ,
long  ,
long  ,
long  ,
long  ,
long   
)
int typeahead ( int  )
void use_env ( bool  )
int vid_attr ( attr_t  ,
short  ,
void *   
)
int vidattr ( chtype  )
int vid_puts ( attr_t  ,
short  ,
void *  ,
int(*)(int)   
)
int vidputs ( chtype  ,
int(*)(int)   
)
int vw_printw ( WINDOW win,
const char *  fmt,
va_list  varglist 
)

Print formatted output in a window.

Parameters:
*winsubject window
*fmtformatted string
varglistargument list
Return values:
rcreturn status code

Definition at line 61 of file print.c.

References _printw_handler(), printw_context::ctx, printf_context::handler, OK, vcprintf(), and printw_context::win.

Referenced by vwprintw(), and wprintw().

                                                                 {
        struct printw_context wctx;

        wctx.win = win;
        wctx.ctx.handler = _printw_handler;
        vcprintf ( &(wctx.ctx), fmt, varglist );
        return OK;
}
int waddch ( WINDOW win,
const chtype  ch 
)

Add a single-byte character and rendition to a window and advance the cursor.

Parameters:
*winwindow to be rendered in
chcharacter to be added at cursor
Return values:
rcreturn status code

Definition at line 23 of file print.c.

References _wputch(), OK, and WRAP.

Referenced by addch(), mvaddch(), and mvwaddch().

                                            {
        _wputch( win, ch, WRAP );
        return OK;
}
int waddchnstr ( WINDOW win,
const chtype chstr,
int  n 
)

Add string of single-byte characters and renditions to a window.

Parameters:
*winwindow to be rendered in
*chstrpointer to first chtype in "string"
nmax number of chars from chstr to render
Return values:
rcreturn status code

Definition at line 21 of file print_nadv.c.

References _restore_curs_pos(), _store_curs_pos(), _wputchstr(), NOWRAP, and OK.

Referenced by addchnstr(), addchstr(), mvaddchnstr(), mvaddchstr(), mvwaddchnstr(), mvwaddchstr(), and waddchstr().

                                                           {
        struct cursor_pos pos;  

        _store_curs_pos( win, &pos );
        _wputchstr( win, chstr, NOWRAP, n );
        _restore_curs_pos( win, &pos );
        return OK;
}
int waddnstr ( WINDOW win,
const char *  str,
int  n 
)

Add string of single-byte characters to a window.

Parameters:
*winwindow to be rendered in
*strstandard c-style string
nmax number of chars from string to render
Return values:
rcreturn status code

Definition at line 36 of file print.c.

References _wputstr(), OK, and WRAP.

Referenced by addnstr(), addstr(), mvaddnstr(), mvaddstr(), mvwaddnstr(), mvwaddstr(), and waddstr().

                                                     {
        _wputstr( win, str, WRAP, n );
        return OK;
}
int wattroff ( WINDOW win,
int  attrs 
)

Turn off attributes in a window.

Parameters:
winsubject window
attrsattributes to enable
Return values:
rcreturn status code

Definition at line 28 of file winattrs.c.

References _curses_window::attrs, and OK.

Referenced by attroff(), and wattr_off().

                                        {
        win->attrs &= ~attrs;
        return OK;
}
int wattron ( WINDOW win,
int  attrs 
)

Turn on attributes in a window.

Parameters:
winsubject window
attrsattributes to enable
Return values:
rcreturn status code

Definition at line 40 of file winattrs.c.

References attrs, _curses_window::attrs, and OK.

Referenced by attron(), and wattr_on().

                                       {
        win->attrs |= attrs;
        return OK;
}
int wattrset ( WINDOW win,
int  attrs 
)

Set attributes in a window.

Parameters:
winsubject window
attrsattributes to enable
Return values:
rcreturn status code

Definition at line 52 of file winattrs.c.

References A_COLOR, _curses_window::attrs, and OK.

Referenced by _enter_slk(), attrset(), bkgdset(), wattr_set(), wbkgdset(), wstandend(), and wstandout().

                                        {
        win->attrs = ( attrs | ( win->attrs & A_COLOR ) );
        return OK;
}
int wattr_get ( WINDOW ,
attr_t ,
short *  ,
void *   
)
int wattr_off ( WINDOW ,
attr_t  ,
void *   
)
int wattr_on ( WINDOW ,
attr_t  ,
void *   
)
int wattr_set ( WINDOW ,
attr_t  ,
short  ,
void *   
)
int wborder ( WINDOW win,
chtype  ls,
chtype  rs,
chtype  ts,
chtype  bs,
chtype  tl,
chtype  tr,
chtype  bl,
chtype  br 
)

Draw borders from single-byte characters and renditions around a window.

Parameters:
*winwindow to be bordered
lsleft side
rsright side
tstop
bsbottom
tltop left corner
trtop right corner
blbottom left corner
brbottom right corner
Return values:
rcreturn status code

Definition at line 43 of file edging.c.

References _restore_curs_pos(), _store_curs_pos(), _wputch(), _curses_window::curs_x, _curses_window::curs_y, _curses_window::height, NOWRAP, OK, _curses_window::width, wmove(), and WRAP.

Referenced by border(), and box().

                                                {
        struct cursor_pos pos;

        _store_curs_pos( win, &pos );
        wmove(win,0,0);

        _wputch(win,tl,WRAP);
        while ( ( win->width - 1 ) - win->curs_x ) {
                _wputch(win,ts,WRAP);
        }
        _wputch(win,tr,WRAP);

        while ( ( win->height - 1 ) - win->curs_y ) {
                _wputch(win,ls,WRAP);
                wmove(win,win->curs_y,(win->width)-1);
                _wputch(win,rs,WRAP);
        }

        _wputch(win,bl,WRAP);
        while ( ( win->width -1 ) - win->curs_x ) {
                _wputch(win,bs,WRAP);
        }
        _wputch(win,br,NOWRAP); /* do not wrap last char to leave
                                   cursor in last position */
        _restore_curs_pos( win, &pos );

        return OK;
}
int wclrtobot ( WINDOW win)

Clear a window to the bottom from current cursor position.

Parameters:
*winsubject window
Return values:
rcreturn status code

Definition at line 19 of file clear.c.

References _restore_curs_pos(), _store_curs_pos(), _wputc(), _curses_window::curs_x, _curses_window::curs_y, OK, and WRAP.

Referenced by clrtobot(), and werase().

                              {
        struct cursor_pos pos;

        _store_curs_pos( win, &pos );
        do {
                _wputc( win, ' ', WRAP );
        } while ( win->curs_y + win->curs_x );
        _restore_curs_pos( win, &pos );

        return OK;
}
int wclrtoeol ( WINDOW win)

Clear a window to the end of the current line.

Parameters:
*winsubject window
Return values:
rcreturn status code

Definition at line 37 of file clear.c.

References _restore_curs_pos(), _store_curs_pos(), _wputc(), _curses_window::curs_y, OK, WRAP, and cursor_pos::y.

Referenced by clrtoeol(), slk_clear(), and wdeleteln().

                              {
        struct cursor_pos pos;

        _store_curs_pos( win, &pos );
        while ( ( win->curs_y - pos.y ) == 0 ) {
                _wputc( win, ' ', WRAP );
        }
        _restore_curs_pos( win, &pos );

        return OK;
}
void wcursyncup ( WINDOW )
int wcolour_set ( WINDOW ,
short  ,
void *   
)
int wdelch ( WINDOW win)

Delete character under the cursor in a window.

Parameters:
*winsubject window
Return values:
rcreturn status code

Definition at line 55 of file clear.c.

References _wcursback(), _wputc(), NOWRAP, and OK.

Referenced by delch(), mvdelch(), mvwdelch(), wgetch(), and wgetnstr().

                           {
        _wputc( win, ' ', NOWRAP );
        _wcursback( win );

        return OK;
}
int wdeleteln ( WINDOW win)

Delete line under a window's cursor.

Parameters:
*winsubject window
Return values:
rcreturn status code

Definition at line 68 of file clear.c.

References _restore_curs_pos(), _store_curs_pos(), _curses_window::curs_y, OK, wclrtoeol(), and wmove().

Referenced by deleteln().

                              {
        struct cursor_pos pos;

        _store_curs_pos( win, &pos );
        /* let's just set the cursor to the beginning of the line and
           let wclrtoeol do the work :) */
        wmove( win, win->curs_y, 0 );
        wclrtoeol( win );
        _restore_curs_pos( win, &pos );
        return OK;
}
int wechochar ( WINDOW ,
const chtype   
)
int werase ( WINDOW win)

Completely clear a window.

Parameters:
*winsubject window
Return values:
rcreturn status code

Definition at line 86 of file clear.c.

References OK, wclrtobot(), and wmove().

                           {
        wmove( win, 0, 0 );
        wclrtobot( win );
        return OK;
}
int wgetch ( WINDOW win)

Pop a character from the FIFO into a window.

Parameters:
*winwindow in which to echo input
Return values:
cchar from input stream

Definition at line 55 of file kb.c.

References _wcursback(), _wgetc(), _wputch(), _curses_window::attrs, beep(), KEY_BACKSPACE, KEY_LEFT, KEY_MIN, m_echo, wdelch(), and WRAP.

Referenced by getch(), mvgetch(), and mvwgetch().

                           {
        int c;

        c = _wgetc( win );

        if ( m_echo ) {
                if ( c >= KEY_MIN ) {
                        switch(c) {
                        case KEY_LEFT :
                        case KEY_BACKSPACE :
                                _wcursback( win );
                                wdelch( win );
                                break;
                        default :
                                beep();
                                break;
                        }
                } else {
                        _wputch( win, (chtype)( c | win->attrs ), WRAP );
                }
        }

        return c;
}
int wgetnstr ( WINDOW win,
char *  str,
int  n 
)

Read at most n characters from the FIFO into a window.

Parameters:
*winwindow in which to echo input
*strpointer to string in which to store result
nmaximum number of characters to read into string (inc. NUL)
Return values:
rcreturn status code

Definition at line 88 of file kb.c.

References _wcursback(), _wgetc(), beep(), ERR, KEY_BACKSPACE, KEY_ENTER, KEY_LEFT, OK, and wdelch().

Referenced by getnstr(), getstr(), mvgetnstr(), mvgetstr(), mvwgetnstr(), mvwgetstr(), and wgetstr().

                                               {
        char *_str;
        int c;

        if ( n == 0 ) {
                *str = '\0';
                return OK;
        }

        _str = str;

        while ( ( c = _wgetc( win ) ) != ERR ) {
                /* termination enforcement - don't let us go past the
                   end of the allocated buffer... */
                if ( n == 0 && ( c >= 32 && c <= 126 ) ) {
                        _wcursback( win );
                        wdelch( win );
                } else {
                        if ( c >= 32 && c <= 126 ) {
                                *(_str++) = c; n--;
                        } else {
                                switch(c) {
                                case KEY_LEFT :
                                case KEY_BACKSPACE :
                                        _wcursback( win );
                                        wdelch( win );
                                        break;
                                case KEY_ENTER :
                                        *_str = '\0';
                                        return OK;
                                default :
                                        beep();
                                        break;
                                }
                        }
                }
        }

        return ERR;
}
int whline ( WINDOW win,
chtype  ch,
int  n 
)

Create a horizontal line in a window.

Parameters:
*winsubject window
chrendition and character
nmax number of chars (wide) to render
Return values:
rcreturn status code

Definition at line 82 of file edging.c.

References _restore_curs_pos(), _store_curs_pos(), _wputch(), _curses_window::curs_x, NOWRAP, OK, and _curses_window::width.

Referenced by hline(), mvhline(), and mvwhline().

                                             {
        struct cursor_pos pos;

        _store_curs_pos ( win, &pos );
        while ( ( win->curs_x - win->width ) && n-- ) {
                _wputch ( win, ch, NOWRAP );
        }
        _restore_curs_pos ( win, &pos );

        return OK;
}
int wmove ( WINDOW win,
int  y,
int  x 
)

Move a window's cursor to the specified position.

Parameters:
*winwindow to be operated on
yY position
xX position
Return values:
rcreturn 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(), draw_editbox(), 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().

                                        {
        /* chech for out-of-bounds errors */
        if ( ( (unsigned)y >= win->height ) ||
             ( (unsigned)x >= win->width ) ) {
                return ERR;
        }

        win->curs_y = y;
        win->curs_x = x;
        _wupdcurs(win);
        return OK;
}
int wprintw ( WINDOW win,
const char *  fmt,
  ... 
)

Print formatted output to a window.

Parameters:
*winsubject window
*fmtformatted string
...string arguments
Return values:
rcreturn status code

Definition at line 78 of file print.c.

References va_end, va_start, and vw_printw().

                                                  {
        va_list args;
        int i;

        va_start ( args, fmt );
        i = vw_printw ( win, fmt, args );
        va_end ( args );
        return i;
}
void wsyncup ( WINDOW )
void wsyncdown ( WINDOW )
void wtimeout ( WINDOW ,
int   
)
int wvline ( WINDOW win,
chtype  ch,
int  n 
)

Create a vertical line in a window.

Parameters:
*winsubject window
chrendition and character
nmax number of chars (high) to render
Return values:
rcreturn status code

Definition at line 102 of file edging.c.

References _restore_curs_pos(), _store_curs_pos(), _wputch(), _curses_window::curs_y, _curses_window::height, NOWRAP, OK, wmove(), and cursor_pos::x.

Referenced by mvvline(), mvwvline(), and vline().

                                             {
        struct cursor_pos pos;

        _store_curs_pos ( win, &pos );
        while ( ( win->curs_y - win->height ) && n-- ) {
                _wputch ( win, ch, NOWRAP );
                wmove( win, ++(win->curs_y), pos.x);
        }
        _restore_curs_pos ( win, &pos );

        return OK;
}
static int addch ( const chtype  ch) [inline, static]

Definition at line 488 of file curses.h.

References stdscr, and waddch().

                                            {
        return waddch( stdscr, ch );
}
static int addchnstr ( const chtype chstr,
int  n 
) [inline, static]

Definition at line 492 of file curses.h.

References stdscr, and waddchnstr().

                                                           {
        return waddchnstr ( stdscr, chstr, n );
}
static int addchstr ( const chtype chstr) [inline, static]

Definition at line 496 of file curses.h.

References stdscr, and waddchnstr().

                                                   {
        return waddchnstr ( stdscr, chstr, -1 );
}
static int addnstr ( const char *  str,
int  n 
) [inline, static]

Definition at line 500 of file curses.h.

References stdscr, and waddnstr().

                                                     {
        return waddnstr ( stdscr, str, n );
}
static int addstr ( const char *  str) [inline, static]

Definition at line 504 of file curses.h.

References stdscr, and waddnstr().

                                             {
        return waddnstr ( stdscr, str, -1 );
}
static int attroff ( int  attrs) [inline, static]

Definition at line 508 of file curses.h.

References stdscr, and wattroff().

Referenced by draw_info_row(), draw_menu_item(), draw_setting_row(), draw_title_row(), login_ui(), and show_menu().

                                        {
        return wattroff ( stdscr, attrs );
}
static int attron ( int  attrs) [inline, static]

Definition at line 512 of file curses.h.

References stdscr, and wattron().

Referenced by draw_info_row(), draw_menu_item(), draw_setting_row(), draw_title_row(), login_ui(), and show_menu().

                                       {
        return wattron ( stdscr, attrs );
}
static int attrset ( int  attrs) [inline, static]

Definition at line 516 of file curses.h.

References stdscr, and wattrset().

Referenced by endwin().

                                        {
        return wattrset ( stdscr, attrs );
}
static int attr_get ( attr_t attrs,
short *  pair,
void *  opts 
) [inline, static]

Definition at line 520 of file curses.h.

References stdscr, and wattr_get().

                                                                      {
        return wattr_get ( stdscr, attrs, pair, opts );
}
static int attr_off ( attr_t  attrs,
void *  opts 
) [inline, static]

Definition at line 524 of file curses.h.

References stdscr, and wattr_off().

                                                        {
        return wattr_off ( stdscr, attrs, opts );
}
static int attr_on ( attr_t  attrs,
void *  opts 
) [inline, static]

Definition at line 528 of file curses.h.

References stdscr, and wattr_on().

                                                       {
        return wattr_on ( stdscr, attrs, opts );
}
static int attr_set ( attr_t  attrs,
short  cpair,
void *  opts 
) [inline, static]

Definition at line 532 of file curses.h.

References stdscr, and wattr_set().

                                                                     {
        return wattr_set ( stdscr, attrs, cpair, opts );
}
static void bkgdset ( chtype  ch) [inline, static]

Definition at line 536 of file curses.h.

References stdscr, and wattrset().

                                         {
        wattrset ( stdscr, ch );
}
static int border ( chtype  ls,
chtype  rs,
chtype  ts,
chtype  bs,
chtype  tl,
chtype  tr,
chtype  bl,
chtype  br 
) [inline, static]

Definition at line 540 of file curses.h.

References stdscr, and wborder().

                                                                        {
        return wborder ( stdscr, ls, rs, ts, bs, tl, tr, bl, br );
}
static bool can_change_colour ( void  ) [inline, static]

Definition at line 545 of file curses.h.

References FALSE.

                                              {
        return FALSE;
}
static int clrtobot ( void  ) [inline, static]

Definition at line 549 of file curses.h.

References stdscr, and wclrtobot().

                                    {
        return wclrtobot( stdscr );
}
static int clrtoeol ( void  ) [inline, static]

Definition at line 553 of file curses.h.

References stdscr, and wclrtoeol().

Referenced by clearmsg(), and draw_menu_item().

                                    {
        return wclrtoeol( stdscr );
}
static int colour_set ( short  colour_pair_number,
void *  opts 
) [inline, static]

Definition at line 557 of file curses.h.

References stdscr, and wcolour_set().

                                                                      {
        return wcolour_set ( stdscr, colour_pair_number, opts );
}
static int delch ( void  ) [inline, static]

Definition at line 561 of file curses.h.

References stdscr, and wdelch().

                                 {
        return wdelch ( stdscr );
}
static int deleteln ( void  ) [inline, static]

Definition at line 565 of file curses.h.

References stdscr, and wdeleteln().

                                    {
        return wdeleteln( stdscr );
}
static int getch ( void  ) [inline, static]

Definition at line 569 of file curses.h.

References stdscr, and wgetch().

                                 {
        return wgetch ( stdscr );
}
static int getnstr ( char *  str,
int  n 
) [inline, static]

Definition at line 573 of file curses.h.

References stdscr, and wgetnstr().

                                               {
        return wgetnstr ( stdscr, str, n );
}
static int getstr ( char *  str) [inline, static]

Definition at line 577 of file curses.h.

References stdscr, and wgetnstr().

                                       {
        return wgetnstr ( stdscr, str, -1 );
}
static bool has_colors ( void  ) [inline, static]

Definition at line 581 of file curses.h.

References TRUE.

                                       {
        return TRUE;
}
static int has_key ( int kc  __unused) [inline, static]

Definition at line 585 of file curses.h.

References TRUE.

                                              {
        return TRUE;
}
static int hline ( chtype  ch,
int  n 
) [inline, static]

Definition at line 589 of file curses.h.

References stdscr, and whline().

                                             {
        return whline ( stdscr, ch, n );
}
static int move ( int  y,
int  x 
) [inline, static]

Definition at line 593 of file curses.h.

References stdscr, and wmove().

Referenced by clearmsg(), draw_menu_item(), draw_setting_row(), initscr(), jump_scroll_move(), main_loop(), menu_loop(), and pxe_menu_draw_item().

                                        {
        return wmove ( stdscr, y, x );
}
static int mvaddch ( int  y,
int  x,
const chtype  ch 
) [inline, static]

Definition at line 597 of file curses.h.

References ERR, OK, stdscr, waddch(), and wmove().

                                                            {
        return ( wmove ( stdscr, y, x ) == OK
                 ? waddch( stdscr, ch ) : ERR );
}
static int mvaddchnstr ( int  y,
int  x,
const chtype chstr,
int  n 
) [inline, static]

Definition at line 602 of file curses.h.

References ERR, OK, stdscr, waddchnstr(), and wmove().

                                                                           {
        return ( wmove ( stdscr, y, x ) == OK
                 ? waddchnstr ( stdscr, chstr, n ) : ERR );
}
static int mvaddchstr ( int  y,
int  x,
const chtype chstr 
) [inline, static]

Definition at line 607 of file curses.h.

References ERR, OK, stdscr, waddchnstr(), and wmove().

                                                                   {
        return ( wmove ( stdscr, y, x ) == OK
                 ? waddchnstr ( stdscr, chstr, -1 ) : ERR );
}
static int mvaddnstr ( int  y,
int  x,
const char *  str,
int  n 
) [inline, static]

Definition at line 612 of file curses.h.

References ERR, OK, stdscr, waddnstr(), and wmove().

                                                                     {
        return ( wmove ( stdscr, y, x ) == OK
                 ? waddnstr ( stdscr, str, n ) : ERR );
}
static int mvaddstr ( int  y,
int  x,
const char *  str 
) [inline, static]

Definition at line 617 of file curses.h.

References ERR, OK, stdscr, waddnstr(), and wmove().

Referenced by draw_menu_items(), and draw_setting_rows().

                                                             {
        return ( wmove ( stdscr, y, x ) == OK
                 ? waddnstr ( stdscr, str, -1 ) : ERR );
}
static int mvdelch ( int  y,
int  x 
) [inline, static]

Definition at line 622 of file curses.h.

References ERR, OK, stdscr, wdelch(), and wmove().

                                           {
        return ( wmove ( stdscr, y, x ) == OK
                 ? wdelch ( stdscr ) : ERR );
}
static int mvgetch ( int  y,
int  x 
) [inline, static]

Definition at line 627 of file curses.h.

References ERR, OK, stdscr, wgetch(), and wmove().

                                           {
        return ( wmove ( stdscr, y, x ) == OK
                 ? wgetch ( stdscr ) : ERR );
}
static int mvgetnstr ( int  y,
int  x,
char *  str,
int  n 
) [inline, static]

Definition at line 632 of file curses.h.

References ERR, OK, stdscr, wgetnstr(), and wmove().

                                                               {
        return ( wmove ( stdscr, y, x ) == OK
                 ? wgetnstr ( stdscr, str, n ) : ERR );
}
static int mvgetstr ( int  y,
int  x,
char *  str 
) [inline, static]

Definition at line 637 of file curses.h.

References ERR, OK, stdscr, wgetnstr(), and wmove().

                                                       {
        return ( wmove ( stdscr, y, x ) == OK
                 ? wgetnstr ( stdscr, str, -1 ) : ERR );
}
static int mvhline ( int  y,
int  x,
chtype  ch,
int  n 
) [inline, static]

Definition at line 642 of file curses.h.

References ERR, OK, stdscr, whline(), and wmove().

                                                             {
        return ( wmove ( stdscr, y, x ) == OK
                 ? whline ( stdscr, ch, n ) : ERR );
}
static int mvvline ( int  y,
int  x,
chtype  ch,
int  n 
) [inline, static]

Definition at line 652 of file curses.h.

References ERR, OK, stdscr, wmove(), and wvline().

                                                             {
        return ( wmove ( stdscr, y, x ) == OK
                 ? wvline ( stdscr, ch, n ) : ERR );
}
static int mvwaddch ( WINDOW win,
int  y,
int  x,
const chtype  ch 
) [inline, static]

Definition at line 657 of file curses.h.

References ERR, OK, waddch(), and wmove().

                                                                          {
        return ( wmove( win, y, x ) == OK
                 ? waddch ( win, ch ) : ERR );
}
static int mvwaddchnstr ( WINDOW win,
int  y,
int  x,
const chtype chstr,
int  n 
) [inline, static]

Definition at line 662 of file curses.h.

References ERR, OK, waddchnstr(), and wmove().

                                                                                         {
        return ( wmove ( win, y, x ) == OK
                 ? waddchnstr ( win, chstr, n ) : ERR );
}
static int mvwaddchstr ( WINDOW win,
int  y,
int  x,
const chtype chstr 
) [inline, static]

Definition at line 667 of file curses.h.

References ERR, OK, waddchnstr(), and wmove().

                                                                                 {
        return ( wmove ( win, y, x ) == OK
                 ? waddchnstr ( win, chstr, -1 ) : ERR );
}
static int mvwaddnstr ( WINDOW win,
int  y,
int  x,
const char *  str,
int  n 
) [inline, static]

Definition at line 672 of file curses.h.

References ERR, OK, waddnstr(), and wmove().

                                                                                   {
        return ( wmove ( win, y, x ) == OK
                 ? waddnstr ( win, str, n ) : ERR );
}
static int mvwaddstr ( WINDOW win,
int  y,
int  x,
const char *  str 
) [inline, static]

Definition at line 677 of file curses.h.

References ERR, OK, waddnstr(), and wmove().

                                                                           {
        return ( wmove ( win, y, x ) == OK
                 ? waddnstr ( win, str, -1 ) : ERR );
}
static int mvwdelch ( WINDOW win,
int  y,
int  x 
) [inline, static]

Definition at line 682 of file curses.h.

References ERR, OK, wdelch(), and wmove().

                                                         {
        return ( wmove ( win, y, x ) == OK
                 ? wdelch ( win ) : ERR );
}
static int mvwgetch ( WINDOW win,
int  y,
int  x 
) [inline, static]

Definition at line 687 of file curses.h.

References ERR, OK, wgetch(), and wmove().

                                                         {
        return ( wmove ( win, y, x ) == OK
                 ? wgetch ( win ) : ERR );
}
static int mvwgetnstr ( WINDOW win,
int  y,
int  x,
char *  str,
int  n 
) [inline, static]

Definition at line 692 of file curses.h.

References ERR, OK, wgetnstr(), and wmove().

                                                                             {
        return ( wmove ( win, y, x ) == OK
                 ? wgetnstr ( win, str, n ) : ERR );
}
static int mvwgetstr ( WINDOW win,
int  y,
int  x,
char *  str 
) [inline, static]

Definition at line 697 of file curses.h.

References ERR, OK, wgetnstr(), and wmove().

                                                                     {
        return ( wmove ( win, y, x ) == OK
                 ? wgetnstr ( win, str, -1 ) : ERR );
}
static int mvwhline ( WINDOW win,
int  y,
int  x,
chtype  ch,
int  n 
) [inline, static]

Definition at line 702 of file curses.h.

References ERR, OK, whline(), and wmove().

                                                                           {
        return ( wmove ( win, y, x ) == OK
                 ? whline ( win, ch, n ) : ERR );
}
static int mvwvline ( WINDOW win,
int  y,
int  x,
chtype  ch,
int  n 
) [inline, static]

Definition at line 711 of file curses.h.

References ERR, OK, wmove(), and wvline().

                                                                           {
        return ( wmove ( win, y, x ) == OK
                 ? wvline ( win, ch, n ) : ERR );
}
static int slk_refresh ( void  ) [inline, static]

Definition at line 718 of file curses.h.

References ERR, OK, slk_clear(), and slk_restore().

                                       {
        if ( slk_clear() == OK )
                return slk_restore();
        else
                return ERR;
}
static int start_colour ( void  ) [inline, static]

Definition at line 728 of file curses.h.

References OK.

                                        {
        return OK;
}
static int vline ( chtype  ch,
int  n 
) [inline, static]

Definition at line 732 of file curses.h.

References stdscr, and wvline().

                                             {
        return wvline ( stdscr, ch, n );
}
static int vwprintw ( WINDOW win,
const char *  fmt,
va_list  varglist 
) [inline, static]

Definition at line 737 of file curses.h.

References vw_printw().

                                                                              {
        return vw_printw ( win, fmt, varglist );
}
static int waddchstr ( WINDOW win,
const chtype chstr 
) [inline, static]

Definition at line 741 of file curses.h.

References waddchnstr().

                                                                 {
        return waddchnstr ( win, chstr, -1 );
}
static int waddstr ( WINDOW win,
const char *  str 
) [inline, static]

Definition at line 745 of file curses.h.

References waddnstr().

                                                           {
        return waddnstr ( win, str, -1 );
}
static int wbkgdset ( WINDOW win,
chtype  ch 
) [inline, static]

Definition at line 749 of file curses.h.

References wattrset().

                                                      {
        return wattrset( win, ch );
}
static int wgetstr ( WINDOW win,
char *  str 
) [inline, static]

Definition at line 753 of file curses.h.

References wgetnstr().

                                                     {
        return wgetnstr ( win, str, -1 );
}
static int wstandend ( WINDOW win) [inline, static]

Definition at line 757 of file curses.h.

References A_DEFAULT, and wattrset().

                                            {
        return wattrset ( win, A_DEFAULT );
}
static int wstandout ( WINDOW win) [inline, static]

Definition at line 761 of file curses.h.

References A_STANDOUT, and wattrset().

                                            {
        return wattrset ( win, A_STANDOUT );
}

Variable Documentation

Definition at line 20 of file mucurses.c.