File win/tty/termcap.c


Included Files


Preprocessor definitions

#define Tgetstr( key )

#define m_move curses_m_move

#define COLOR_BLACK COLOR_BLUE


Global Variable tc_lcl_data

struct tc_lcl_data tc_lcl_data
Visible in:  src/drawing.c
   src/options.c
   src/restore.c
   win/tty/termcap.c
Used in: cl_eos()win/tty/termcap.c
  cmov()win/tty/termcap.c
  e_atr2str()win/tty/termcap.c
  home()win/tty/termcap.c
  init_hilite()win/tty/termcap.c
  kill_hilite()win/tty/termcap.c
  nocmov()win/tty/termcap.c
  s_atr2str()win/tty/termcap.c
  term_end_color()win/tty/termcap.c
  term_end_raw_bold()win/tty/termcap.c
  term_start_raw_bold()win/tty/termcap.c
  tty_decgraphics_termcap_fixup()win/tty/termcap.c
  tty_delay_output()win/tty/termcap.c
  tty_startup()win/tty/termcap.c

Global Variable hilites

char* hilites[16]
Visible in:  src/drawing.c
   src/options.c
   src/restore.c
   win/tty/termcap.c
Used in: has_color()win/tty/termcap.c
  init_hilite()win/tty/termcap.c
  kill_hilite()win/tty/termcap.c
  term_start_color()win/tty/termcap.c

Global Variable ti_map

const int ti_map[8]
Visible in:  win/tty/termcap.c
Used in: init_hilite()win/tty/termcap.c

External Variables

HE_resets_AS
extern boolean HE_resets_AS

decgraphics_mode_callback
extern void (*decgraphics_mode_callback)(void)
Defined in: src/drawing.c


Local Variables

HO
static char* HO
Used in: home()
  nocmov()
  tty_startup()

CL
static char* CL
Used in: clear_screen()
  tty_startup()

CE
static char* CE
Used in: cl_end()
  tty_startup()

UP
static char* UP
Used in: nocmov()
  tty_startup()

XD
static char* XD
Used in: nocmov()
  tty_startup()

BC
static char* BC
Used in: backsp()
  nocmov()
  tty_startup()

SO
static char* SO
Used in: standoutbeg()
  tty_startup()

SE
static char* SE
Used in: standoutend()
  tty_startup()

TI
static char* TI
Used in: tty_start_screen()
  tty_startup()

TE
static char* TE
Used in: tty_end_screen()
  tty_startup()

VS
static char* VS
Used in: tty_start_screen()
  tty_startup()

VE
static char* VE
Used in: tty_end_screen()
  tty_startup()

ME
static char* ME
Used in: e_atr2str()
  tty_startup()

MR
static char* MR
Used in: s_atr2str()
  tty_startup()

MD
static char* MD
Used in: init_hilite()
  tty_startup()

SG
static int SG
Used in: tty_startup()

PC
static char PC
Used in: tty_startup()

tbuf
static char tbuf[512]
Used in: tty_startup()

KS
static char* KS
Used in: tty_decgraphics_termcap_fixup()
  tty_number_pad()
  tty_startup()

KE
static char* KE
Used in: tty_decgraphics_termcap_fixup()
  tty_number_pad()
  tty_startup()

nullstr
static char nullstr[]
Used in: tty_startup()

tmspc10
static const short tmspc10[]
Used in: tty_delay_output()

nulstr
static char nulstr[]
Used in: e_atr2str()
  s_atr2str()


Global Function backsp()

void backsp ( void )
Prototyped in: include/wintty.h
Calls: xputs()win/tty/termcap.c
References Variables: BCwin/tty/termcap.c

Global Function cl_end()

void cl_end ( void )
Prototyped in: include/wintty.h
Calls: xputc()win/tty/termcap.c
  xputs()win/tty/termcap.c
  tty_curs()
Called by: cl_eos()win/tty/termcap.c
References Variables: CEwin/tty/termcap.c
  tc_gbl_datasrc/decl.c
  BASE_WINDOW, ttyDisplay

Global Function cl_eos()

void cl_eos ( void )
Prototyped in: include/wintty.h
Calls: cl_end()win/tty/termcap.c
  xputc()win/tty/termcap.c
  xputs()win/tty/termcap.c
  tty_curs()
References Variables: tc_gbl_datasrc/decl.c
  tc_lcl_datawin/tty/termcap.c
  BASE_WINDOW, ttyDisplay

Global Function clear_screen()

void clear_screen ( void )
Prototyped in: include/wintty.h
Calls: home()win/tty/termcap.c
  xputs()win/tty/termcap.c
Called by: tty_end_screen()win/tty/termcap.c
References Variables: CLwin/tty/termcap.c

Global Function cmov()

void cmov ( int x, int y )
Prototyped in: win/tty/termcap.c
Calls: xputs()win/tty/termcap.c
  tgoto()
Called by: nocmov()win/tty/termcap.c
  tty_delay_output()win/tty/termcap.c
References Variables: tc_lcl_datawin/tty/termcap.c
  ttyDisplay

Global Function graph_off()

void graph_off ( void )
Prototyped in: include/wintty.h
Calls: xputs()win/tty/termcap.c
References Variables: tc_gbl_datasrc/decl.c

Global Function graph_on()

void graph_on ( void )
Prototyped in: include/wintty.h
Calls: xputs()win/tty/termcap.c
References Variables: tc_gbl_datasrc/decl.c

Global Function has_color()

int has_color ( int color )
Prototyped in: include/wintty.h
References Variables: hiliteswin/tty/termcap.c

Global Function home()

void home ( void )
Prototyped in: include/wintty.h
Calls: xputs()win/tty/termcap.c
  tgoto(), tty_curs()
Called by: clear_screen()win/tty/termcap.c
  nocmov()win/tty/termcap.c
References Variables: HOwin/tty/termcap.c
  tc_lcl_datawin/tty/termcap.c
  BASE_WINDOW, ttyDisplay

Global Function nocmov()

void nocmov ( int x, int y )
Prototyped in: win/tty/termcap.c
Calls: cmov()win/tty/termcap.c
  home()win/tty/termcap.c
  xputc()win/tty/termcap.c
  xputs()win/tty/termcap.c
  tty_curs()
References Variables: BCwin/tty/termcap.c
  HOwin/tty/termcap.c
  UPwin/tty/termcap.c
  XDwin/tty/termcap.c
  tc_lcl_datawin/tty/termcap.c
  BASE_WINDOW, ttyDisplay

Global Function standoutbeg()

void standoutbeg ( void )
Prototyped in: include/wintty.h
Calls: xputs()win/tty/termcap.c
References Variables: SOwin/tty/termcap.c

Global Function standoutend()

void standoutend ( void )
Prototyped in: include/wintty.h
Calls: xputs()win/tty/termcap.c
References Variables: SEwin/tty/termcap.c

Global Function term_end_attr()

void term_end_attr ( int attr )
Prototyped in: include/wintty.h
Calls: e_atr2str()win/tty/termcap.c
  xputs()win/tty/termcap.c

Global Function term_end_color()

void term_end_color ( void )
Prototyped in: include/wintty.h
Calls: xputs()win/tty/termcap.c
References Variables: tc_lcl_datawin/tty/termcap.c

Global Function term_end_raw_bold()

void term_end_raw_bold ( void )
Prototyped in: include/wintty.h
Calls: xputs()win/tty/termcap.c
References Variables: tc_lcl_datawin/tty/termcap.c

Global Function term_start_attr()

void term_start_attr ( int attr )
Prototyped in: include/wintty.h
Calls: s_atr2str()win/tty/termcap.c
  xputs()win/tty/termcap.c

Global Function term_start_color()

void term_start_color ( int color )
Prototyped in: include/wintty.h
Calls: xputs()win/tty/termcap.c
References Variables: hiliteswin/tty/termcap.c

Global Function term_start_raw_bold()

void term_start_raw_bold ( void )
Prototyped in: include/wintty.h
Calls: xputs()win/tty/termcap.c
References Variables: tc_lcl_datawin/tty/termcap.c

Global Function tty_delay_output()

void tty_delay_output ( void )
Prototyped in: include/wintty.h
Calls: cmov()win/tty/termcap.c
  fflush(), strlen(), tgoto(), tputs(), usleep()
References Functions: xputc()win/tty/termcap.c
References Variables: flagssrc/decl.c
  tc_lcl_datawin/tty/termcap.c
  tmspc10win/tty/termcap.c
  ospeed, ttyDisplay

Global Function tty_end_screen()

void tty_end_screen ( void )
Prototyped in: include/wintty.h
Calls: clear_screen()win/tty/termcap.c
  xputs()win/tty/termcap.c
References Variables: TEwin/tty/termcap.c
  VEwin/tty/termcap.c

Global Function tty_nhbell()

void tty_nhbell ( void )
Prototyped in: include/wintty.h
Calls: fflush(), putchar()
Called by: hooked_tty_getlin()win/tty/getline.c
  xwaitforspace()win/tty/getline.c
References Variables: flagssrc/decl.c

Global Function tty_number_pad()

void tty_number_pad ( int state )
Prototyped in: include/wintty.h
Calls: xputs()win/tty/termcap.c
Called by: tty_start_screen()win/tty/termcap.c
References Variables: KEwin/tty/termcap.c
  KSwin/tty/termcap.c

Global Function tty_shutdown()

void tty_shutdown ( void )
Prototyped in: include/wintty.h
Calls: kill_hilite()win/tty/termcap.c

Global Function tty_start_screen()

void tty_start_screen ( void )
Prototyped in: include/wintty.h
Calls: tty_decgraphics_termcap_fixup()win/tty/termcap.c
  tty_number_pad()win/tty/termcap.c
  xputs()win/tty/termcap.c
References Functions: tty_decgraphics_termcap_fixup()win/tty/termcap.c
References Variables: TIwin/tty/termcap.c
  VSwin/tty/termcap.c
  decgraphics_mode_callbacksrc/drawing.c
  iflagssrc/decl.c

Global Function tty_startup()

void tty_startup ( int* wid, int* hgt )
Prototyped in: include/wintty.h
Calls: alloc()src/alloc.c
  digit()src/hacklib.c
  init_hilite()win/tty/termcap.c
  error(), free(), getenv(), setclipped(), strcpy(), strlen(), strncmp(), strncpy(), tgetent(), tgetflag(), tgetnum(), tgetstr(), tty_raw_print(), tty_wait_synch()
References Variables: BCwin/tty/termcap.c
  CEwin/tty/termcap.c
  CLwin/tty/termcap.c
  HOwin/tty/termcap.c
  KEwin/tty/termcap.c
  KSwin/tty/termcap.c
  MDwin/tty/termcap.c
  MEwin/tty/termcap.c
  MRwin/tty/termcap.c
  PCwin/tty/termcap.c
  SEwin/tty/termcap.c
  SGwin/tty/termcap.c
  SOwin/tty/termcap.c
  TEwin/tty/termcap.c
  TIwin/tty/termcap.c
  UPwin/tty/termcap.c
  VEwin/tty/termcap.c
  VSwin/tty/termcap.c
  XDwin/tty/termcap.c
  flagssrc/decl.c
  nullstrwin/tty/termcap.c
  tbufwin/tty/termcap.c
  tc_gbl_datasrc/decl.c
  tc_lcl_datawin/tty/termcap.c

Global Function xputc()

void xputc ( char c )
Prototyped in: include/wintty.h
Calls: putchar()
Called by: cl_end()win/tty/termcap.c
  cl_eos()win/tty/termcap.c
  nocmov()win/tty/termcap.c
Used in: tty_delay_output()win/tty/termcap.c
  xputs()win/tty/termcap.c

Global Function xputs()

void xputs ( const char* s )
Prototyped in: include/wintty.h
Calls: tputs()
Called by: backsp()win/tty/termcap.c
  cl_end()win/tty/termcap.c
  cl_eos()win/tty/termcap.c
  clear_screen()win/tty/termcap.c
  cmov()win/tty/termcap.c
  graph_off()win/tty/termcap.c
  graph_on()win/tty/termcap.c
  home()win/tty/termcap.c
  nocmov()win/tty/termcap.c
  standoutbeg()win/tty/termcap.c
  standoutend()win/tty/termcap.c
  term_end_attr()win/tty/termcap.c
  term_end_color()win/tty/termcap.c
  term_end_raw_bold()win/tty/termcap.c
  term_start_attr()win/tty/termcap.c
  term_start_color()win/tty/termcap.c
  term_start_raw_bold()win/tty/termcap.c
  tty_decgraphics_termcap_fixup()win/tty/termcap.c
  tty_end_screen()win/tty/termcap.c
  tty_number_pad()win/tty/termcap.c
  tty_start_screen()win/tty/termcap.c
References Functions: xputc()win/tty/termcap.c

Local Function e_atr2str()

static char* e_atr2str ( int n )
Prototyped in: win/tty/termcap.c
Called by: term_end_attr()win/tty/termcap.c
References Variables: MEwin/tty/termcap.c
  nulstrwin/tty/termcap.c
  tc_lcl_datawin/tty/termcap.c

Local Function init_hilite()

static void init_hilite ( void )
Prototyped in: win/tty/termcap.c
Calls: alloc()src/alloc.c
  strcat(), strcpy(), strlen(), tgetnum(), tgetstr(), tparm()
Called by: tty_startup()win/tty/termcap.c
References Variables: MDwin/tty/termcap.c
  hiliteswin/tty/termcap.c
  tc_lcl_datawin/tty/termcap.c
  ti_mapwin/tty/termcap.c

Local Function kill_hilite()

static void kill_hilite ( void )
Prototyped in: win/tty/termcap.c
Calls: free()
Called by: tty_shutdown()win/tty/termcap.c
References Variables: hiliteswin/tty/termcap.c
  tc_lcl_datawin/tty/termcap.c

Local Function s_atr2str()

static char* s_atr2str ( int n )
Prototyped in: win/tty/termcap.c
Called by: term_start_attr()win/tty/termcap.c
References Variables: MRwin/tty/termcap.c
  nulstrwin/tty/termcap.c
  tc_lcl_datawin/tty/termcap.c

Local Function tty_decgraphics_termcap_fixup()

static void tty_decgraphics_termcap_fixup ( void )
Prototyped in: win/tty/termcap.c
Calls: digit()src/hacklib.c
  xputs()win/tty/termcap.c
  strlen(), strncmp()
Called by: tty_start_screen()win/tty/termcap.c
Used in: tty_start_screen()win/tty/termcap.c
References Variables: KEwin/tty/termcap.c
  KSwin/tty/termcap.c
  iflagssrc/decl.c
  tc_gbl_datasrc/decl.c
  tc_lcl_datawin/tty/termcap.c
  HE_resets_AS