1 /* This file takes care of loading ncurses or slang */
3 int got_interrupt (void);
4 void mc_refresh (void);
11 # define enable_interrupt_key()
12 # define disable_interrupt_key()
13 # define slang_shutdown()
14 # define slang_done_screen()
16 # define slang_init_screen()
17 # define slang_init_tty()
18 # define slang_done_tty();
21 # define one_vline() addch (slow_terminal ? ' ' : ACS_VLINE)
22 # define one_hline() addch (slow_terminal ? ' ' : ACS_HLINE)
25 #if !defined(TTY_H_DONE) && defined(USE_NCURSES)
26 /* This is required since ncurses 1.8.6 and newer changed the name of */
27 /* the include files (July 1994) */
28 # ifdef RENAMED_NCURSES
35 # define TERM_INCLUDED 1
40 #if !defined(TTY_H_DONE) && defined(USE_BSD_CURSES)
42 /* This is only to let people that don't want to install ncurses */
43 /* run this nice program; they get what they deserve. */
45 /* Ultrix has a better curses: cursesX */
53 # define ACS_VLINE '|'
57 # define ACS_HLINE '-'
61 # define ACS_ULCORNER '+'
65 # define ACS_LLCORNER '+'
69 # define ACS_URCORNER '+'
73 # define ACS_LRCORNER '+'
80 # ifndef KEY_BACKSPACE
81 # define KEY_BACKSPACE 0
88 # define ACS_MAP(x) '*'
90 # define NO_COLOR_SUPPORT
91 # define untouchwin(win)
92 # define xgetch x_getch
93 # define wtouchln(win,b,c,d) touchwin(win)
94 # define derwin(win,x,y,z,w) win
99 #if !defined(TTY_H_DONE) && defined(USE_SYSV_CURSES)
103 /* Ugly hack to avoid name space pollution */
108 # define TERM_INCLUDED 1
111 # if defined(sparc) || defined(__sgi) || defined(_SGI_SOURCE)
112 /* We are dealing with Solaris or SGI buggy curses :-) */
113 # define BUGGY_CURSES 1
115 # if defined(mips) && defined(sgi)
116 /* GNU C compiler, buggy sgi */
117 # define BUGGY_CURSES 1
121 # define untouchwin(win)
124 #endif /* USE_SYSV_CURSES */
126 #ifdef NO_COLOR_SUPPORT
127 # define COLOR_PAIR(x) 1
130 COLOR_BLACK
, COLOR_RED
, COLOR_GREEN
, COLOR_YELLOW
,
131 COLOR_BLUE
, COLOR_MAGENTA
, COLOR_CYAN
, COLOR_WHITE
134 int init_pair (int, int, int);
138 #define KEY_KP_ADD 4001
139 #define KEY_KP_SUBTRACT 4002
140 #define KEY_KP_MULTIPLY 4003