Back to index

tetex-bin  3.0
Classes | Defines | Functions | Variables
tic.h File Reference
#include <curses.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  token
struct  kn
struct  tinfo_fkeys
struct  name_table_entry
struct  alias

Defines

#define MAGIC   0432 /* first two bytes of a compiled entry */
#define MAX_NAME_SIZE   512 /* maximum legal name field size (XSI:127) */
#define MAX_ENTRY_SIZE   4096 /* maximum legal entry size */
#define MAX_ALIAS   14 /* SVr3 filename length */
#define PRIVATE_INFO   "%s/.terminfo" /* plug getenv("HOME") into %s */
#define MAX_DEBUG_LEVEL   15
#define DEBUG_LEVEL(n)   ((n) << TRACE_SHIFT)
#define set_trace_level(n)
#define DEBUG(n, a)   /*nothing*/
#define BOOLEAN   0 /* Boolean capability */
#define NUMBER   1 /* Numeric capability */
#define STRING   2 /* String-valued capability */
#define CANCEL   3 /* Capability to be cancelled in following tc's */
#define NAMES   4 /* The names for a terminal type */
#define UNDEF   5 /* Undefined */
#define NO_PUSHBACK   -1 /* used in pushtype to indicate no pushback */
#define NOTFOUND   ((struct name_table_entry *) 0)
#define ABSENT_BOOLEAN   ((signed char)-1) /* 255 */
#define ABSENT_NUMERIC   (-1)
#define ABSENT_STRING   (char *)0
#define CANCELLED_BOOLEAN   ((signed char)-2) /* 254 */
#define CANCELLED_NUMERIC   (-2)
#define CANCELLED_STRING   (char *)(-1)
#define VALID_BOOLEAN(s)   ((unsigned char)(s) <= 1) /* reject "-1" */
#define VALID_NUMERIC(s)   ((s) >= 0)
#define VALID_STRING(s)   ((s) != CANCELLED_STRING && (s) != ABSENT_STRING)
#define MAX_TERMCAP_LENGTH   1023
#define MAX_TERMINFO_LENGTH   4096
#define TERMINFO   "/usr/share/terminfo"
#define SYN_TERMINFO   0
#define SYN_TERMCAP   1
#define NUM_PARM   9

Functions

 NCURSES_EXPORT_VAR (unsigned) _nc_tracing
 NCURSES_EXPORT (void) _nc_tracef(char *
 GCC_PRINTFLIKE (1, 2)
 NCURSES_EXPORT (const char *) _nc_visbuf(const char *)
 NCURSES_EXPORT_VAR (struct token) _nc_curr_token
 NCURSES_EXPORT_VAR (const struct kn) _nc_key_names[]
 NCURSES_EXPORT_VAR (struct tinfo_fkeys) _nc_tinfo_fkeys[]
 NCURSES_EXPORT_VAR (const struct name_table_entry *const) _nc_info_hash_table[]
 NCURSES_EXPORT_VAR (const struct alias) _nc_capalias_table[]
 NCURSES_EXPORT (const struct name_table_entry *) _nc_get_table(bool)
 NCURSES_EXPORT (const struct name_table_entry *const *) _nc_get_hash_table(bool)
 NCURSES_EXPORT (unsigned) _nc_pathlast(const char *)
 NCURSES_EXPORT (char *) _nc_basename(char *)
struct name_table_entry *const
struct name_table_entry
NCURSES_EXPORT (int) _nc_get_token(bool)
char * NCURSES_EXPORT_VAR (int) _nc_curr_col
 NCURSES_EXPORT_VAR (long) _nc_comment_end
 NCURSES_EXPORT_VAR (bool) _nc_suppress_warnings

Variables

struct name_table_entry *const int
 bool
char const char int const
char * p_is_s [NUM_PARM]
char intpopcount
const char * _nc_progname

Class Documentation

struct token

Definition at line 148 of file tic.h.

Class Members
char * tk_name
int tk_valnumber
char * tk_valstring
struct kn

Definition at line 160 of file tic.h.

Class Members
int code
const char * name
struct tinfo_fkeys

Definition at line 171 of file tic.h.

Class Members
chtype code
unsigned offset
struct name_table_entry

Definition at line 193 of file tic.h.

Class Members
short nte_index
short nte_link
const char * nte_name
int nte_type
struct alias

Definition at line 201 of file tic.h.

Class Members
const char * from
const char * source
const char * to

Define Documentation

#define ABSENT_BOOLEAN   ((signed char)-1) /* 255 */

Definition at line 220 of file tic.h.

#define ABSENT_NUMERIC   (-1)

Definition at line 221 of file tic.h.

#define ABSENT_STRING   (char *)0

Definition at line 222 of file tic.h.

#define BOOLEAN   0 /* Boolean capability */

Definition at line 133 of file tic.h.

#define CANCEL   3 /* Capability to be cancelled in following tc's */

Definition at line 136 of file tic.h.

#define CANCELLED_BOOLEAN   ((signed char)-2) /* 254 */

Definition at line 225 of file tic.h.

#define CANCELLED_NUMERIC   (-2)

Definition at line 226 of file tic.h.

#define CANCELLED_STRING   (char *)(-1)

Definition at line 227 of file tic.h.

#define DEBUG (   n,
  a 
)    /*nothing*/

Definition at line 118 of file tic.h.

#define DEBUG_LEVEL (   n)    ((n) << TRACE_SHIFT)

Definition at line 109 of file tic.h.

#define MAGIC   0432 /* first two bytes of a compiled entry */

Definition at line 78 of file tic.h.

#define MAX_ALIAS   14 /* SVr3 filename length */

Definition at line 96 of file tic.h.

#define MAX_DEBUG_LEVEL   15

Definition at line 108 of file tic.h.

#define MAX_ENTRY_SIZE   4096 /* maximum legal entry size */

Definition at line 85 of file tic.h.

#define MAX_NAME_SIZE   512 /* maximum legal name field size (XSI:127) */

Definition at line 84 of file tic.h.

#define MAX_TERMCAP_LENGTH   1023

Definition at line 234 of file tic.h.

#define MAX_TERMINFO_LENGTH   4096

Definition at line 237 of file tic.h.

#define NAMES   4 /* The names for a terminal type */

Definition at line 137 of file tic.h.

#define NO_PUSHBACK   -1 /* used in pushtype to indicate no pushback */

Definition at line 140 of file tic.h.

#define NOTFOUND   ((struct name_table_entry *) 0)

Definition at line 217 of file tic.h.

#define NUM_PARM   9

Definition at line 289 of file tic.h.

#define NUMBER   1 /* Numeric capability */

Definition at line 134 of file tic.h.

#define PRIVATE_INFO   "%s/.terminfo" /* plug getenv("HOME") into %s */

Definition at line 100 of file tic.h.

#define set_trace_level (   n)
Value:
_nc_tracing &= DEBUG_LEVEL(MAX_DEBUG_LEVEL), \
       _nc_tracing |= DEBUG_LEVEL(n)

Definition at line 111 of file tic.h.

#define STRING   2 /* String-valued capability */

Definition at line 135 of file tic.h.

#define SYN_TERMCAP   1

Definition at line 267 of file tic.h.

#define SYN_TERMINFO   0

Definition at line 266 of file tic.h.

#define TERMINFO   "/usr/share/terminfo"

Definition at line 240 of file tic.h.

#define UNDEF   5 /* Undefined */

Definition at line 138 of file tic.h.

#define VALID_BOOLEAN (   s)    ((unsigned char)(s) <= 1) /* reject "-1" */

Definition at line 229 of file tic.h.

#define VALID_NUMERIC (   s)    ((s) >= 0)

Definition at line 230 of file tic.h.

#define VALID_STRING (   s)    ((s) != CANCELLED_STRING && (s) != ABSENT_STRING)

Definition at line 231 of file tic.h.


Function Documentation

GCC_PRINTFLIKE ( ,
 
)
const char * NCURSES_EXPORT ( const char *  ) const
struct name_table_entry *const * NCURSES_EXPORT ( const struct name_table_entry ) [read]
NCURSES_EXPORT ( unsigned  ) const
NCURSES_EXPORT ( char *  )
NCURSES_EXPORT_VAR ( unsigned  )
NCURSES_EXPORT_VAR ( struct token  )
NCURSES_EXPORT_VAR ( const struct kn  )

Definition at line 52 of file lib_color.c.

                    {r,g,b, 0,0,0, 0}

#define TYPE_CALLOC(type,elts) typeCalloc(type, (unsigned)(elts))

/*
 * Given a RGB range of 0..1000, we'll normally set the individual values
 * to about 2/3 of the maximum, leaving full-range for bold/bright colors.
 */
#define RGB_ON  680
#define RGB_OFF 0
/* *INDENT-OFF* */
static const color_t cga_palette[] =
{
    /*  R               G               B */
    DATA(RGB_OFF,    RGB_OFF,      RGB_OFF),     /* COLOR_BLACK */
    DATA(RGB_ON,     RGB_OFF,      RGB_OFF),     /* COLOR_RED */
    DATA(RGB_OFF,    RGB_ON,              RGB_OFF),     /* COLOR_GREEN */
    DATA(RGB_ON,     RGB_ON,              RGB_OFF),     /* COLOR_YELLOW */
    DATA(RGB_OFF,    RGB_OFF,      RGB_ON),      /* COLOR_BLUE */
    DATA(RGB_ON,     RGB_OFF,      RGB_ON),      /* COLOR_MAGENTA */
    DATA(RGB_OFF,    RGB_ON,              RGB_ON),      /* COLOR_CYAN */
    DATA(RGB_ON,     RGB_ON,              RGB_ON),      /* COLOR_WHITE */
};
NCURSES_EXPORT_VAR ( long  )

Definition at line 46 of file comp_error.c.

{
    sourcename = name;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 279 of file tic.h.

const char int const

Definition at line 285 of file tic.h.

int

Definition at line 252 of file tic.h.

char* p_is_s[NUM_PARM]

Definition at line 293 of file tic.h.

char int* popcount

Definition at line 293 of file tic.h.