File win/tty/wintty.c

References Functions: genl_outrip()src/rip.c
  tty_add_menu()win/tty/wintty.c
  tty_askname()win/tty/wintty.c
  tty_clear_nhwindow()win/tty/wintty.c
  tty_cliparound()win/tty/wintty.c
  tty_create_nhwindow()win/tty/wintty.c
  tty_curs()win/tty/wintty.c
  tty_delay_output()win/tty/termcap.c
  tty_destroy_nhwindow()win/tty/wintty.c
  tty_display_file()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
  tty_doprev_message()win/tty/topl.c
  tty_end_menu()win/tty/wintty.c
  tty_end_screen()win/tty/termcap.c
  tty_exit_nhwindows()win/tty/wintty.c
  tty_get_ext_cmd()win/tty/getline.c
  tty_get_nh_event()win/tty/wintty.c
  tty_getlin()win/tty/getline.c
  tty_init_nhwindows()win/tty/wintty.c
  tty_mark_synch()win/tty/wintty.c
  tty_message_menu()win/tty/wintty.c
  tty_nh_poskey()win/tty/wintty.c
  tty_nhbell()win/tty/termcap.c
  tty_nhgetch()win/tty/wintty.c
  tty_number_pad()win/tty/termcap.c
  tty_player_selection()win/tty/wintty.c
  tty_print_glyph()win/tty/wintty.c
  tty_putstr()win/tty/wintty.c
  tty_raw_print()win/tty/wintty.c
  tty_raw_print_bold()win/tty/wintty.c
  tty_resume_nhwindows()win/tty/wintty.c
  tty_select_menu()win/tty/wintty.c
  tty_start_menu()win/tty/wintty.c
  tty_start_screen()win/tty/termcap.c
  tty_suspend_nhwindows()win/tty/wintty.c
  tty_update_inventory()win/tty/wintty.c
  tty_wait_synch()win/tty/wintty.c
  tty_yn_function()win/tty/topl.c

Included Files


Preprocessor definitions

#define DEBUG

#define GSELIDX( c )

#define zap_color( n )

#define cmap_color( n )

#define obj_color( n )

#define mon_color( n )

#define invis_color( n )

#define pet_color( n )

#define warn_color( n )

#define ROGUE_COLOR

#define HAS_ROGUE_IBM_GRAPHICS


Global Variable tty_procs

struct window_procs tty_procs
Visible in:  src/windows.c
   win/tty/getline.c
   win/tty/termcap.c
   win/tty/topl.c
   win/tty/wintty.c
Used in:  src/windows.c

Global Variable BASE_WINDOW

winid BASE_WINDOW
Visible in:  src/windows.c
   win/tty/getline.c
   win/tty/termcap.c
   win/tty/topl.c
   win/tty/wintty.c
Used in: addtopl()win/tty/topl.c
  cl_end()win/tty/termcap.c
  cl_eos()win/tty/termcap.c
  dmore()win/tty/wintty.c
  docorner()win/tty/wintty.c
  home()win/tty/termcap.c
  more()win/tty/topl.c
  nocmov()win/tty/termcap.c
  process_text_window()win/tty/wintty.c
  topl_putsym()win/tty/topl.c
  tty_askname()win/tty/wintty.c
  tty_dismiss_nhwindow()win/tty/wintty.c
  tty_exit_nhwindows()win/tty/wintty.c
  tty_init_nhwindows()win/tty/wintty.c
  tty_player_selection()win/tty/wintty.c

Global Variable wins

struct WinDesc* wins[20]
Visible in:  src/windows.c
   win/tty/getline.c
   win/tty/termcap.c
   win/tty/topl.c
   win/tty/wintty.c
Used in: addtopl()win/tty/topl.c
  docorner()win/tty/wintty.c
  free_window_info()win/tty/wintty.c
  hooked_tty_getlin()win/tty/getline.c
  invert_all()win/tty/wintty.c
  more()win/tty/topl.c
  remember_topl()win/tty/topl.c
  topl_putsym()win/tty/topl.c
  tty_add_menu()win/tty/wintty.c
  tty_askname()win/tty/wintty.c
  tty_clear_nhwindow()win/tty/wintty.c
  tty_create_nhwindow()win/tty/wintty.c
  tty_curs()win/tty/wintty.c
  tty_destroy_nhwindow()win/tty/wintty.c
  tty_dismiss_nhwindow()win/tty/wintty.c
  tty_display_file()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
  tty_doprev_message()win/tty/topl.c
  tty_end_menu()win/tty/wintty.c
  tty_exit_nhwindows()win/tty/wintty.c
  tty_init_nhwindows()win/tty/wintty.c
  tty_message_menu()win/tty/wintty.c
  tty_nhgetch()win/tty/wintty.c
  tty_player_selection()win/tty/wintty.c
  tty_print_glyph()win/tty/wintty.c
  tty_putstr()win/tty/wintty.c
  tty_putsym()win/tty/wintty.c
  tty_select_menu()win/tty/wintty.c
  tty_yn_function()win/tty/topl.c
  update_topl()win/tty/topl.c

Global Variable ttyDisplay

struct DisplayDesc* ttyDisplay
Visible in:  src/windows.c
   win/tty/getline.c
   win/tty/termcap.c
   win/tty/topl.c
   win/tty/wintty.c
Used in: addtopl()win/tty/topl.c
  cl_end()win/tty/termcap.c
  cl_eos()win/tty/termcap.c
  cmov()win/tty/termcap.c
  dmore()win/tty/wintty.c
  end_glyphout()win/tty/wintty.c
  home()win/tty/termcap.c
  hooked_tty_getlin()win/tty/getline.c
  more()win/tty/topl.c
  nocmov()win/tty/termcap.c
  process_menu_window()win/tty/wintty.c
  process_text_window()win/tty/wintty.c
  redotoplin()win/tty/topl.c
  set_item_state()win/tty/wintty.c
  topl_putsym()win/tty/topl.c
  tty_clear_nhwindow()win/tty/wintty.c
  tty_create_nhwindow()win/tty/wintty.c
  tty_curs()win/tty/wintty.c
  tty_delay_output()win/tty/termcap.c
  tty_dismiss_nhwindow()win/tty/wintty.c
  tty_display_file()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
  tty_doprev_message()win/tty/topl.c
  tty_end_menu()win/tty/wintty.c
  tty_init_nhwindows()win/tty/wintty.c
  tty_message_menu()win/tty/wintty.c
  tty_nhgetch()win/tty/wintty.c
  tty_print_glyph()win/tty/wintty.c
  tty_putstr()win/tty/wintty.c
  tty_putsym()win/tty/wintty.c
  tty_raw_print()win/tty/wintty.c
  tty_raw_print_bold()win/tty/wintty.c
  tty_wait_synch()win/tty/wintty.c
  tty_yn_function()win/tty/topl.c
  update_topl()win/tty/topl.c
  xwaitforspace()win/tty/getline.c

Global Variable defmorestr

char defmorestr[]
Visible in:  src/windows.c
   win/tty/getline.c
   win/tty/termcap.c
   win/tty/topl.c
   win/tty/wintty.c
Used in: dmore()win/tty/wintty.c
  more()win/tty/topl.c

Global Variable GFlag

boolean GFlag
Visible in:  win/tty/wintty.c
Used in: end_glyphout()win/tty/wintty.c
  g_putch()win/tty/wintty.c

Global Variable HE_resets_AS

boolean HE_resets_AS
Visible in:  win/tty/termcap.c
   win/tty/wintty.c
Used in: g_putch()win/tty/wintty.c
  tty_decgraphics_termcap_fixup()win/tty/termcap.c

External Variables

restoring
extern boolean restoring
Defined in: src/restore.c

mapped_menu_cmds
extern char mapped_menu_cmds[]
Defined in: src/options.c


Local Variables

maxwin
static int maxwin
Used in: tty_create_nhwindow()

obuf
static char obuf[8192]
Used in: tty_init_nhwindows()

winpanicstr
static char winpanicstr[]
Used in: tty_add_menu()
  tty_clear_nhwindow()
  tty_curs()
  tty_destroy_nhwindow()
  tty_dismiss_nhwindow()
  tty_display_nhwindow()
  tty_end_menu()
  tty_putsym()
  tty_select_menu()

clipping
static boolean clipping
Used in: setclipped()
  tty_cliparound()
  tty_curs()
  tty_print_glyph()

clipx
static int clipx
Used in: docorner()
  setclipped()
  tty_cliparound()
  tty_curs()
  tty_print_glyph()

clipxmax
static int clipxmax
Used in: setclipped()
  tty_cliparound()
  tty_print_glyph()

clipy
static int clipy
Used in: docorner()
  setclipped()
  tty_cliparound()
  tty_curs()
  tty_print_glyph()

clipymax
static int clipymax
Used in: setclipped()
  tty_cliparound()
  tty_print_glyph()

default_menu_cmds
static const char default_menu_cmds[]
Used in: process_menu_window()


Global Function docorner()

void docorner ( int xmin, int ymax )
Prototyped in: include/wintty.h
Calls: bot()src/botl.c
  cl_end()win/tty/termcap.c
  end_glyphout()win/tty/wintty.c
  row_refresh()src/display.c
  swallowed()src/display.c
  tty_curs()win/tty/wintty.c
Called by: erase_menu_or_text()win/tty/wintty.c
  more()win/tty/topl.c
  tty_clear_nhwindow()win/tty/wintty.c
  update_topl()win/tty/topl.c
References Variables: BASE_WINDOWwin/tty/wintty.c
  WIN_MAPsrc/decl.c
  WIN_STATUSsrc/decl.c
  clipxwin/tty/wintty.c
  clipywin/tty/wintty.c
  flagssrc/decl.c
  usrc/decl.c
  winswin/tty/wintty.c

Global Function end_glyphout()

void end_glyphout ( void )
Prototyped in: include/wintty.h
Calls: graph_off()win/tty/termcap.c
  term_end_color()win/tty/termcap.c
Called by: docorner()win/tty/wintty.c
  redotoplin()win/tty/topl.c
  tty_curs()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
References Variables: GFlagwin/tty/wintty.c
  ttyDisplaywin/tty/wintty.c

Global Function g_putch()

void g_putch ( int in_ch )
Prototyped in: include/wintty.h
Calls: graph_off()win/tty/termcap.c
  graph_on()win/tty/termcap.c
  putchar()
Called by: redotoplin()win/tty/topl.c
  tty_print_glyph()win/tty/wintty.c
References Variables: GFlagwin/tty/wintty.c
  HE_resets_ASwin/tty/wintty.c
  iflagssrc/decl.c

Global Function setclipped()

void setclipped ( void )
Prototyped in: include/wintty.h
Called by: tty_startup()win/tty/termcap.c
References Variables: clippingwin/tty/wintty.c
  clipxwin/tty/wintty.c
  clipxmaxwin/tty/wintty.c
  clipywin/tty/wintty.c
  clipymaxwin/tty/wintty.c
  tc_gbl_datasrc/decl.c

Global Function tty_add_menu()

void tty_add_menu ( winid window, int glyph, const anything* identifier, char ch, char gch, int attr, const char* str, boolean preselected )
Prototyped in: include/wintty.h
Calls: alloc()src/alloc.c
  copy_of()win/tty/wintty.c
  impossible()src/pline.c
  panic()src/end.c
  sprintf(), strlen(), strncpy()
Called by: tty_end_menu()win/tty/wintty.c
Used in:  win/tty/wintty.c
References Variables: winpanicstrwin/tty/wintty.c
  winswin/tty/wintty.c

Global Function tty_askname()

void tty_askname ( void )
Prototyped in: include/wintty.h
Calls: bail()win/tty/wintty.c
  cl_end()win/tty/termcap.c
  tty_curs()win/tty/wintty.c
  tty_nhgetch()win/tty/wintty.c
  tty_putstr()win/tty/wintty.c
  error(), putchar()
Used in:  win/tty/wintty.c
References Variables: BASE_WINDOWwin/tty/wintty.c
  plnamesrc/decl.c
  winswin/tty/wintty.c

Global Function tty_clear_nhwindow()

void tty_clear_nhwindow ( winid window )
Prototyped in: include/wintty.h
Calls: cl_end()win/tty/termcap.c
  clear_screen()win/tty/termcap.c
  docorner()win/tty/wintty.c
  erase_menu_or_text()win/tty/wintty.c
  free_window_info()win/tty/wintty.c
  home()win/tty/termcap.c
  panic()src/end.c
  tty_curs()win/tty/wintty.c
Called by: hooked_tty_getlin()win/tty/getline.c
  tty_display_file()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
  tty_init_nhwindows()win/tty/wintty.c
  tty_player_selection()win/tty/wintty.c
  tty_start_menu()win/tty/wintty.c
  tty_yn_function()win/tty/topl.c
Used in:  win/tty/wintty.c
References Variables: flagssrc/decl.c
  ttyDisplaywin/tty/wintty.c
  winpanicstrwin/tty/wintty.c
  winswin/tty/wintty.c

Global Function tty_cliparound()

void tty_cliparound ( int x, int y )
Prototyped in: include/wintty.h
Calls: doredraw()src/display.c
  on_level()src/dungeon.c
Used in:  win/tty/wintty.c
References Variables: clippingwin/tty/wintty.c
  clipxwin/tty/wintty.c
  clipxmaxwin/tty/wintty.c
  clipywin/tty/wintty.c
  clipymaxwin/tty/wintty.c
  restoringsrc/restore.c
  tc_gbl_datasrc/decl.c
  usrc/decl.c

Global Function tty_create_nhwindow()

winid tty_create_nhwindow ( int type )
Prototyped in: include/wintty.h
Calls: alloc()src/alloc.c
  panic()src/end.c
Called by: tty_display_file()win/tty/wintty.c
  tty_init_nhwindows()win/tty/wintty.c
Used in:  win/tty/wintty.c
References Variables: iflagssrc/decl.c
  maxwinwin/tty/wintty.c
  ttyDisplaywin/tty/wintty.c
  winswin/tty/wintty.c

Global Function tty_curs()

void tty_curs ( winid window, int x, int y )
Prototyped in: include/wintty.h
Calls: cmov()win/tty/termcap.c
  end_glyphout()win/tty/wintty.c
  impossible()src/pline.c
  nocmov()win/tty/termcap.c
  panic()src/end.c
  putchar()
Called by: addtopl()win/tty/topl.c
  cl_end()win/tty/termcap.c
  cl_eos()win/tty/termcap.c
  dmore()win/tty/wintty.c
  docorner()win/tty/wintty.c
  erase_menu_or_text()win/tty/wintty.c
  home()win/tty/termcap.c
  more()win/tty/topl.c
  nocmov()win/tty/termcap.c
  process_menu_window()win/tty/wintty.c
  process_text_window()win/tty/wintty.c
  set_item_state()win/tty/wintty.c
  topl_putsym()win/tty/topl.c
  tty_askname()win/tty/wintty.c
  tty_clear_nhwindow()win/tty/wintty.c
  tty_dismiss_nhwindow()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
  tty_print_glyph()win/tty/wintty.c
  tty_putstr()win/tty/wintty.c
  tty_putsym()win/tty/wintty.c
Used in:  win/tty/wintty.c
References Variables: WIN_MAPsrc/decl.c
  clippingwin/tty/wintty.c
  clipxwin/tty/wintty.c
  clipywin/tty/wintty.c
  tc_lcl_datawin/tty/termcap.c
  ttyDisplaywin/tty/wintty.c
  winpanicstrwin/tty/wintty.c
  winswin/tty/wintty.c

Global Function tty_destroy_nhwindow()

void tty_destroy_nhwindow ( winid window )
Prototyped in: include/wintty.h
Calls: clear_screen()win/tty/termcap.c
  free_window_info()win/tty/wintty.c
  panic()src/end.c
  tty_dismiss_nhwindow()win/tty/wintty.c
  free()
Called by: tty_display_file()win/tty/wintty.c
Used in:  win/tty/wintty.c
References Variables: iflagssrc/decl.c
  winpanicstrwin/tty/wintty.c
  winswin/tty/wintty.c

Global Function tty_dismiss_nhwindow()

void tty_dismiss_nhwindow ( winid window )
Prototyped in: include/wintty.h
Calls: erase_menu_or_text()win/tty/wintty.c
  panic()src/end.c
  tty_curs()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
Called by: tty_destroy_nhwindow()win/tty/wintty.c
  tty_select_menu()win/tty/wintty.c
References Variables: BASE_WINDOWwin/tty/wintty.c
  WIN_MESSAGEsrc/decl.c
  iflagssrc/decl.c
  ttyDisplaywin/tty/wintty.c
  winpanicstrwin/tty/wintty.c
  winswin/tty/wintty.c

Global Function tty_display_file()

void tty_display_file ( const char* fname, boolean complain )
Prototyped in: include/wintty.h
Calls: dlb_fclose()src/dlb.c
  dlb_fgets()src/dlb.c
  dlb_fopen()src/dlb.c
  docrt()src/display.c
  home()win/tty/termcap.c
  pline()src/pline.c
  tabexpand()src/hacklib.c
  tty_clear_nhwindow()win/tty/wintty.c
  tty_create_nhwindow()win/tty/wintty.c
  tty_destroy_nhwindow()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
  tty_mark_synch()win/tty/wintty.c
  tty_putstr()win/tty/wintty.c
  tty_raw_print()win/tty/wintty.c
  tty_wait_synch()win/tty/wintty.c
  perror(), strchr()
Used in:  win/tty/wintty.c
References Variables: WIN_MESSAGEsrc/decl.c
  WIN_STATUSsrc/decl.c
  tc_lcl_datawin/tty/termcap.c
  ttyDisplaywin/tty/wintty.c
  usrc/decl.c
  winswin/tty/wintty.c

Global Function tty_display_nhwindow()

void tty_display_nhwindow ( winid window, boolean blocking )
Prototyped in: include/wintty.h
Calls: cl_eos()win/tty/termcap.c
  clear_screen()win/tty/termcap.c
  end_glyphout()win/tty/wintty.c
  more()win/tty/topl.c
  panic()src/end.c
  process_menu_window()win/tty/wintty.c
  process_text_window()win/tty/wintty.c
  tty_clear_nhwindow()win/tty/wintty.c
  tty_curs()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
  fflush()
Called by: tty_dismiss_nhwindow()win/tty/wintty.c
  tty_display_file()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
  tty_init_nhwindows()win/tty/wintty.c
  tty_player_selection()win/tty/wintty.c
  tty_putstr()win/tty/wintty.c
  tty_select_menu()win/tty/wintty.c
  tty_wait_synch()win/tty/wintty.c
Used in:  win/tty/wintty.c
References Variables: WIN_MESSAGEsrc/decl.c
  iflagssrc/decl.c
  ttyDisplaywin/tty/wintty.c
  winpanicstrwin/tty/wintty.c
  winswin/tty/wintty.c

Global Function tty_end_menu()

void tty_end_menu ( winid window, const char* prompt )
Prototyped in: include/wintty.h
Calls: alloc()src/alloc.c
  copy_of()win/tty/wintty.c
  panic()src/end.c
  reverse()win/tty/wintty.c
  tty_add_menu()win/tty/wintty.c
  free(), sprintf(), strlen()
Used in:  win/tty/wintty.c
References Variables: ttyDisplaywin/tty/wintty.c
  winpanicstrwin/tty/wintty.c
  winswin/tty/wintty.c

Global Function tty_exit_nhwindows()

void tty_exit_nhwindows ( const char* str )
Prototyped in: include/wintty.h
Calls: tty_shutdown()win/tty/termcap.c
  tty_suspend_nhwindows()win/tty/wintty.c
Called by: bail()win/tty/wintty.c
Used in:  win/tty/wintty.c
References Variables: BASE_WINDOWwin/tty/wintty.c
  iflagssrc/decl.c
  winswin/tty/wintty.c

Global Function tty_get_nh_event()

void tty_get_nh_event ( void )
Prototyped in: include/wintty.h
Used in:  win/tty/wintty.c

Global Function tty_init_nhwindows()

void tty_init_nhwindows ( int* argcp, char** argv )
Prototyped in: include/wintty.h
Calls: add_menu_cmd_alias()src/options.c
  alloc()src/alloc.c
  tty_clear_nhwindow()win/tty/wintty.c
  tty_create_nhwindow()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
  tty_putstr()win/tty/wintty.c
  tty_startup()win/tty/termcap.c
  gettty(), setbuf(), setftty()
Used in:  win/tty/wintty.c
References Variables: BASE_WINDOWwin/tty/wintty.c
  obufwin/tty/wintty.c
  ttyDisplaywin/tty/wintty.c
  winswin/tty/wintty.c

Global Function tty_mark_synch()

void tty_mark_synch ( void )
Prototyped in: include/wintty.h
Calls: fflush()
Called by: tty_display_file()win/tty/wintty.c
Used in:  win/tty/wintty.c

Global Function tty_message_menu()

char tty_message_menu ( char let, int how, const char* mesg )
Prototyped in: include/wintty.h
Calls: more()win/tty/topl.c
  pline()src/pline.c
  tty_putstr()win/tty/wintty.c
Used in:  win/tty/wintty.c
References Variables: WIN_MESSAGEsrc/decl.c
  morcwin/tty/getline.c
  ttyDisplaywin/tty/wintty.c
  winswin/tty/wintty.c

Global Function tty_nh_poskey()

int tty_nh_poskey ( int* x, int* y, int* mod )
Prototyped in: include/wintty.h
Calls: tty_nhgetch()win/tty/wintty.c
Used in:  win/tty/wintty.c

Global Function tty_nhgetch()

int tty_nhgetch ( void )
Prototyped in: include/wintty.h
Calls: fflush(), fileno(), getchar(), read()
Called by: tty_askname()win/tty/wintty.c
  tty_nh_poskey()win/tty/wintty.c
  xwaitforspace()win/tty/getline.c
Used in:  win/tty/wintty.c
References Variables: WIN_MESSAGEsrc/decl.c
  ttyDisplaywin/tty/wintty.c
  winswin/tty/wintty.c

Global Function tty_player_selection()

void tty_player_selection ( void )
Prototyped in: include/wintty.h
Calls: an()src/objnam.c
  bail()win/tty/wintty.c
  highc()src/hacklib.c
  lowc()src/hacklib.c
  ok_align()src/role.c
  ok_gend()src/role.c
  ok_race()src/role.c
  ok_role()src/role.c
  pick_align()src/role.c
  pick_gend()src/role.c
  pick_race()src/role.c
  pick_role()src/role.c
  randalign()src/role.c
  randgend()src/role.c
  randrace()src/role.c
  randrole()src/role.c
  readchar()src/cmd.c
  tty_clear_nhwindow()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
  tty_putstr()win/tty/wintty.c
  tty_putsym()win/tty/wintty.c
  validalign()src/role.c
  validgend()src/role.c
  validrace()src/role.c
  free(), sprintf(), strchr(), strlen()
Used in:  win/tty/wintty.c
References Variables: BASE_WINDOWwin/tty/wintty.c
  alignssrc/role.c
  flagssrc/decl.c
  genderssrc/role.c
  quitcharssrc/decl.c
  racessrc/role.c
  rolessrc/role.c
  tc_gbl_datasrc/decl.c
  windowprocssrc/windows.c
  winswin/tty/wintty.c
  ynqcharssrc/decl.c

Global Function tty_print_glyph()

void tty_print_glyph ( winid window, xchar x, xchar y, int glyph )
Prototyped in: include/wintty.h
Calls: backsp()win/tty/termcap.c
  g_putch()win/tty/wintty.c
  has_color()win/tty/termcap.c
  on_level()src/dungeon.c
  term_end_attr()win/tty/termcap.c
  term_end_color()win/tty/termcap.c
  term_start_attr()win/tty/termcap.c
  term_start_color()win/tty/termcap.c
  tty_curs()win/tty/wintty.c
  putchar()
Used in:  win/tty/wintty.c
References Variables: clippingwin/tty/wintty.c
  clipxwin/tty/wintty.c
  clipxmaxwin/tty/wintty.c
  clipywin/tty/wintty.c
  clipymaxwin/tty/wintty.c
  def_warnsymssrc/drawing.c
  defsymssrc/drawing.c
  dungeon_topologysrc/decl.c
  iflagssrc/decl.c
  monssrc/monst.c
  monsymssrc/drawing.c
  objectssrc/objects.c
  oc_symssrc/drawing.c
  showsymssrc/drawing.c
  tc_lcl_datawin/tty/termcap.c
  ttyDisplaywin/tty/wintty.c
  usrc/decl.c
  warnsymssrc/drawing.c
  winswin/tty/wintty.c
  zapcolorssrc/decl.c

Global Function tty_putstr()

void tty_putstr ( winid window, int attr, const char* str )
Prototyped in: include/wintty.h
Calls: alloc()src/alloc.c
  cl_end()win/tty/termcap.c
  compress_str()win/tty/wintty.c
  term_end_attr()win/tty/termcap.c
  term_start_attr()win/tty/termcap.c
  tty_curs()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
  tty_putstr()win/tty/wintty.c
  tty_putsym()win/tty/wintty.c
  tty_raw_print()win/tty/wintty.c
  update_topl()win/tty/topl.c
  free(), putchar(), strchr(), strcpy(), strlen(), strncpy()
Called by: tty_askname()win/tty/wintty.c
  tty_display_file()win/tty/wintty.c
  tty_init_nhwindows()win/tty/wintty.c
  tty_message_menu()win/tty/wintty.c
  tty_player_selection()win/tty/wintty.c
  tty_putstr()win/tty/wintty.c
Used in:  win/tty/wintty.c
References Variables: WIN_STATUSsrc/decl.c
  flagssrc/decl.c
  tc_gbl_datasrc/decl.c
  ttyDisplaywin/tty/wintty.c
  winswin/tty/wintty.c

Global Function tty_raw_print()

void tty_raw_print ( const char* str )
Prototyped in: include/wintty.h
Calls: fflush(), puts()
Called by: tty_display_file()win/tty/wintty.c
  tty_putstr()win/tty/wintty.c
  tty_startup()win/tty/termcap.c
  tty_suspend_nhwindows()win/tty/wintty.c
Used in:  win/tty/wintty.c
References Variables: ttyDisplaywin/tty/wintty.c

Global Function tty_raw_print_bold()

void tty_raw_print_bold ( const char* str )
Prototyped in: include/wintty.h
Calls: term_end_raw_bold()win/tty/termcap.c
  term_start_raw_bold()win/tty/termcap.c
  fflush(), fputs(), puts()
Used in:  win/tty/wintty.c
References Variables: ttyDisplaywin/tty/wintty.c

Global Function tty_resume_nhwindows()

void tty_resume_nhwindows ( void )
Prototyped in: include/wintty.h
Calls: docrt()src/display.c
  gettty(), setftty()
Used in:  win/tty/wintty.c

Global Function tty_select_menu()

int tty_select_menu ( winid window, int how, menu_item** menu_list )
Prototyped in: include/wintty.h
Calls: alloc()src/alloc.c
  panic()src/end.c
  tty_dismiss_nhwindow()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
Used in:  win/tty/wintty.c
References Variables: morcwin/tty/getline.c
  winpanicstrwin/tty/wintty.c
  winswin/tty/wintty.c

Global Function tty_start_menu()

void tty_start_menu ( winid window )
Prototyped in: include/wintty.h
Calls: tty_clear_nhwindow()win/tty/wintty.c
Used in:  win/tty/wintty.c

Global Function tty_suspend_nhwindows()

void tty_suspend_nhwindows ( const char* str )
Prototyped in: include/wintty.h
Calls: tty_raw_print()win/tty/wintty.c
  settty()
Called by: tty_exit_nhwindows()win/tty/wintty.c
Used in:  win/tty/wintty.c

Global Function tty_update_inventory()

void tty_update_inventory ( void )
Prototyped in: include/wintty.h
Used in:  win/tty/wintty.c

Global Function tty_wait_synch()

void tty_wait_synch ( void )
Prototyped in: include/wintty.h
Calls: addtopl()win/tty/topl.c
  getret()win/tty/wintty.c
  tty_display_nhwindow()win/tty/wintty.c
  tty_doprev_message()win/tty/topl.c
  fflush()
Called by: tty_display_file()win/tty/wintty.c
  tty_startup()win/tty/termcap.c
Used in:  win/tty/wintty.c
References Variables: WIN_MAPsrc/decl.c
  ttyDisplaywin/tty/wintty.c

Global Function win_tty_init()

void win_tty_init ( void )
Prototyped in: include/wintty.h
Used in:  src/windows.c

Local Function bail()

static void bail ( const char* mesg )
Prototyped in: win/tty/wintty.c
Calls: clearlocks()src/files.c
  terminate()src/end.c
  tty_exit_nhwindows()win/tty/wintty.c
Called by: tty_askname()win/tty/wintty.c
  tty_player_selection()win/tty/wintty.c

Local Function compress_str()

static const char* compress_str ( const char* str )
Prototyped in: win/tty/wintty.c
Calls: strlen()
Called by: tty_putstr()win/tty/wintty.c
References Variables: tc_gbl_datasrc/decl.c

Local Function copy_of()

static char* copy_of ( const char* s )
Prototyped in: win/tty/wintty.c
Calls: alloc()src/alloc.c
  strcpy(), strlen()
Called by: tty_add_menu()win/tty/wintty.c
  tty_end_menu()win/tty/wintty.c

Local Function dmore()

static void dmore ( struct WinDesc* cw, const char* s )
Prototyped in: win/tty/wintty.c
Calls: standoutbeg()win/tty/termcap.c
  standoutend()win/tty/termcap.c
  tty_curs()win/tty/wintty.c
  xputs()win/tty/termcap.c
  xwaitforspace()win/tty/getline.c
  strlen()
Called by: process_menu_window()win/tty/wintty.c
  process_text_window()win/tty/wintty.c
References Variables: BASE_WINDOWwin/tty/wintty.c
  defmorestrwin/tty/wintty.c
  flagssrc/decl.c
  ttyDisplaywin/tty/wintty.c

Local Function erase_menu_or_text()

static void erase_menu_or_text ( winid window, struct WinDesc* cw, boolean clear )
Prototyped in: win/tty/wintty.c
Calls: cl_eos()win/tty/termcap.c
  clear_screen()win/tty/termcap.c
  docorner()win/tty/wintty.c
  docrt()src/display.c
  tty_curs()win/tty/wintty.c
Called by: tty_clear_nhwindow()win/tty/wintty.c
  tty_dismiss_nhwindow()win/tty/wintty.c

Local Function free_window_info()

static void free_window_info ( struct WinDesc* cw, boolean free_data )
Prototyped in: win/tty/wintty.c
Calls: free()
Called by: tty_clear_nhwindow()win/tty/wintty.c
  tty_destroy_nhwindow()win/tty/wintty.c
References Variables: WIN_MESSAGEsrc/decl.c
  winswin/tty/wintty.c

Local Function getret()

static void getret ( void )
Prototyped in: win/tty/wintty.c
Calls: standoutbeg()win/tty/termcap.c
  standoutend()win/tty/termcap.c
  xputs()win/tty/termcap.c
  xwaitforspace()win/tty/getline.c
Called by: tty_wait_synch()win/tty/wintty.c
References Variables: flagssrc/decl.c
  iflagssrc/decl.c

Local Function invert_all()

static void invert_all ( winid window, tty_menu_item* page_start, tty_menu_item* page_end, char acc )
Prototyped in: win/tty/wintty.c
Calls: invert_all_on_page()win/tty/wintty.c
Called by: process_menu_window()win/tty/wintty.c
References Variables: winswin/tty/wintty.c

Local Function invert_all_on_page()

static void invert_all_on_page ( winid window, tty_menu_item* page_start, tty_menu_item* page_end, char acc )
Prototyped in: win/tty/wintty.c
Calls: set_item_state()win/tty/wintty.c
Called by: invert_all()win/tty/wintty.c
  process_menu_window()win/tty/wintty.c

Local Function process_menu_window()

static void process_menu_window ( winid window, struct WinDesc* cw )
Prototyped in: win/tty/wintty.c
Calls: cl_end()win/tty/termcap.c
  cl_eos()win/tty/termcap.c
  clear_screen()win/tty/termcap.c
  dmore()win/tty/wintty.c
  invert_all()win/tty/wintty.c
  invert_all_on_page()win/tty/wintty.c
  map_menu_cmd()src/options.c
  panic()src/end.c
  set_all_on_page()win/tty/wintty.c
  set_item_state()win/tty/wintty.c
  term_end_attr()win/tty/termcap.c
  term_start_attr()win/tty/termcap.c
  tty_curs()win/tty/wintty.c
  tty_nhbell()win/tty/termcap.c
  unset_all_on_page()win/tty/wintty.c
  xwaitforspace()win/tty/getline.c
  putchar(), sprintf(), strcat(), strchr(), strcpy(), strlen()
Called by: tty_display_nhwindow()win/tty/wintty.c
References Variables: default_menu_cmdswin/tty/wintty.c
  mapped_menu_cmdssrc/options.c
  morcwin/tty/getline.c
  ttyDisplaywin/tty/wintty.c

Local Function process_text_window()

static void process_text_window ( winid window, struct WinDesc* cw )
Prototyped in: win/tty/wintty.c
Calls: cl_end()win/tty/termcap.c
  cl_eos()win/tty/termcap.c
  clear_screen()win/tty/termcap.c
  dmore()win/tty/wintty.c
  term_end_attr()win/tty/termcap.c
  term_start_attr()win/tty/termcap.c
  tty_curs()win/tty/wintty.c
  putchar()
Called by: tty_display_nhwindow()win/tty/wintty.c
References Variables: BASE_WINDOWwin/tty/wintty.c
  morcwin/tty/getline.c
  quitcharssrc/decl.c
  ttyDisplaywin/tty/wintty.c

Local Function reverse()

static tty_menu_item* reverse ( tty_menu_item* curr )
Prototyped in: win/tty/wintty.c
Called by: tty_end_menu()win/tty/wintty.c

Local Function set_all_on_page()

static void set_all_on_page ( winid window, tty_menu_item* page_start, tty_menu_item* page_end )
Prototyped in: win/tty/wintty.c
Calls: set_item_state()win/tty/wintty.c
Called by: process_menu_window()win/tty/wintty.c

Local Function set_item_state()

static void set_item_state ( winid window, int lineno, tty_menu_item* item )
Prototyped in: win/tty/wintty.c
Calls: term_end_attr()win/tty/termcap.c
  term_start_attr()win/tty/termcap.c
  tty_curs()win/tty/wintty.c
  putchar()
Called by: invert_all_on_page()win/tty/wintty.c
  process_menu_window()win/tty/wintty.c
  set_all_on_page()win/tty/wintty.c
  unset_all_on_page()win/tty/wintty.c
References Variables: ttyDisplaywin/tty/wintty.c

Local Function tty_putsym()

static void tty_putsym ( winid window, int x, int y, char ch )
Prototyped in: win/tty/wintty.c
Calls: impossible()src/pline.c
  panic()src/end.c
  tty_curs()win/tty/wintty.c
  putchar()
Called by: tty_player_selection()win/tty/wintty.c
  tty_putstr()win/tty/wintty.c
References Variables: ttyDisplaywin/tty/wintty.c
  winpanicstrwin/tty/wintty.c
  winswin/tty/wintty.c

Local Function unset_all_on_page()

static void unset_all_on_page ( winid window, tty_menu_item* page_start, tty_menu_item* page_end )
Prototyped in: win/tty/wintty.c
Calls: set_item_state()win/tty/wintty.c
Called by: process_menu_window()win/tty/wintty.c