ARPDAS_QNX6 1.0
|
Go to the source code of this file.
Defines | |
#define | NCT_CHARS_GR 0 |
#define | NCT_CHARS_ASCII 1 |
Functions | |
void | nct_init_options (int argc, char **argv) |
void | nct_args (char *dev_name) |
void | nct_charset (int n) |
int | nct_init (const char *winname, int n_rows, int n_cols) |
int | nct_cmdclt_init (void) |
void | nct_refresh (void) |
void | nct_string (int winnum, int attr, int row, int col, const char *text) |
Write string to an ncurses display. | |
void | nct_clear (int winnum) |
void | nct_hrule (int winnum, int attr, int row, int col, unsigned char *rule) |
void | nct_vrule (int winnum, int attr, int row, int col, unsigned char *rule) |
char | nct_getch (void) |
#define NCT_CHARS_ASCII 1 |
Definition at line 5 of file nctable.h.
Referenced by nct_charset(), and nct_init_options().
#define NCT_CHARS_GR 0 |
Definition at line 4 of file nctable.h.
Referenced by nct_charset().
void nct_args | ( | char * | dev_name | ) |
Definition at line 45 of file nctable.c.
References nct_display_t::dev_name, MAX_DEVS, n_devs, and nl_error.
Referenced by nct_init_options().
void nct_charset | ( | int | n | ) |
Definition at line 335 of file nctable.c.
References asciichar, grphchar, nct_boxchars, NCT_CHARS_ASCII, NCT_CHARS_GR, and nl_error.
Referenced by nct_init_options().
void nct_clear | ( | int | winnum | ) |
Definition at line 159 of file nctable.c.
References mark_dirty(), and nct_select().
int nct_cmdclt_init | ( | void | ) |
Definition at line 126 of file nctable.c.
References cic_cmd_quit_fd, cic_init(), nct_cmd_quit_fd, and nct_init().
char nct_getch | ( | void | ) |
Definition at line 378 of file nctable.c.
References nct_display_t::dev_name, IBUFSIZE, nct_display_t::ifd, ifds_opened, n_devs, n_scrs, nct_cmd_quit_fd, nct_select(), nl_assert, and nl_error.
void nct_hrule | ( | int | winnum, |
int | attr, | ||
int | row, | ||
int | col, | ||
unsigned char * | rule | ||
) |
Definition at line 348 of file nctable.c.
References nct_boxchars, and nct_select().
int nct_init | ( | const char * | winname, |
int | n_rows, | ||
int | n_cols | ||
) |
Initializes an ncurses display. nct_init() cannot be called after nct_getch().
Definition at line 95 of file nctable.c.
References nct_display_t::dev_name, nct_display_t::dirty, nct_display_t::ifp, n_devs, n_scrs, nct_shutdown(), nl_error, nct_display_t::ofp, nct_display_t::screen, and ttype.
Referenced by nct_cmdclt_init().
void nct_init_options | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 51 of file nctable.c.
References nct_args(), NCT_CHARS_ASCII, nct_charset(), nl_error, opt_string, and OPTIND_RESET.
void nct_refresh | ( | void | ) |
Definition at line 133 of file nctable.c.
References nct_display_t::dirty, is_dirty(), n_scrs, and nct_select().
Referenced by nc_data_client::read().
void nct_string | ( | int | winnum, |
int | attr, | ||
int | row, | ||
int | col, | ||
const char * | text | ||
) |
Write string to an ncurses display.
winnum is the window number returned by nct_init(); attr is the atribute number (a small integer) as set by nctable. This should map to screen colors, but the implementation of that will have to wait.
Definition at line 152 of file nctable.c.
References mark_dirty(), and nct_select().
void nct_vrule | ( | int | winnum, |
int | attr, | ||
int | row, | ||
int | col, | ||
unsigned char * | rule | ||
) |
Definition at line 360 of file nctable.c.
References nct_boxchars, and nct_select().