X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=ncurses%2Fcurses.priv.h;h=dbc5e29cec10ac6ec6e2bf4700150dd484c377a8;hb=77afe78361875f531dc2bf8d73f2e781c8e76176;hp=1f5507b2a02a25d926ff237de409ffd5fa016e78;hpb=fb24ca09eab8f14b9be7ea60acf174aae46df43d;p=ncurses.git diff --git a/ncurses/curses.priv.h b/ncurses/curses.priv.h index 1f5507b2..dbc5e29c 100644 --- a/ncurses/curses.priv.h +++ b/ncurses/curses.priv.h @@ -35,7 +35,7 @@ /* - * $Id: curses.priv.h,v 1.442 2009/10/31 20:33:43 tom Exp $ + * $Id: curses.priv.h,v 1.445 2009/12/05 21:20:51 tom Exp $ * * curses.priv.h * @@ -686,8 +686,10 @@ typedef struct { */ #if MIXEDCASE_FILENAMES #define LEAF_FMT "%c" +#define LEAF_LEN 1 #else #define LEAF_FMT "%02x" +#define LEAF_LEN 2 #endif /* @@ -700,6 +702,13 @@ typedef struct { #define TRACEMSE_MAX (80 + (5 * 10) + (32 * 15)) #define TRACEMSE_FMT "id %2d at (%2d, %2d, %2d) state %4lx = {" /* } */ +#ifdef USE_TERM_DRIVER +struct DriverTCB; /* Terminal Control Block forward declaration */ +#define INIT_TERM_DRIVER() _nc_globals.term_driver = _nc_get_driver +#else +#define INIT_TERM_DRIVER() /* nothing */ +#endif + /* * Global data which is not specific to a screen. */ @@ -746,6 +755,10 @@ typedef struct { int safeprint_rows; #endif +#ifdef USE_TERM_DRIVER + int (*term_driver)(struct DriverTCB*, const char*, int*); +#endif + #ifdef TRACE bool init_trace; char trace_fname[PATH_MAX]; @@ -805,6 +818,7 @@ typedef struct { #if NCURSES_NO_PADDING bool _no_padding; /* flag to set if padding disabled */ #endif + NCURSES_SP_OUTC _outch; /* output handler if not putc */ #if BROKEN_LINKER || USE_REENTRANT chtype *real_acs_map; int _LINES; @@ -1958,7 +1972,6 @@ extern NCURSES_EXPORT(int) _nc_get_tty_mode(TTY *); sp->jump = outc #ifdef USE_TERM_DRIVER -struct DriverTCB; /* Terminal Control Block forward declaration */ typedef void* TERM_HANDLE; typedef struct _termInfo