* vfs.c (vfs_init) [!WITH_MCFS]: Don't register mcfs.
[midnight-commander.git] / src / tty.h
blob06d6fb5beb8bc21bde61ef660799d8e80d328c4c
1 #ifndef __MC_TTY_H
2 #define __MC_TTY_H
4 /* This file takes care of loading ncurses or slang */
6 int got_interrupt (void);
8 #ifdef HAVE_SLANG
9 # include "myslang.h"
10 #else
11 # define enable_interrupt_key()
12 # define disable_interrupt_key()
13 # define slang_shutdown()
14 # define slang_done_screen()
15 # define slang_init()
16 # define slang_init_screen()
17 # define slang_init_tty()
18 # define slang_done_tty();
19 # define acs()
20 # define noacs()
21 # define one_vline() addch (slow_terminal ? ' ' : ACS_VLINE)
22 # define one_hline() addch (slow_terminal ? ' ' : ACS_HLINE)
23 #endif
25 #ifdef 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
29 # include <curses.h>
30 # else
31 # include <ncurses.h>
32 # endif
33 #endif /* USE_NCURSES */
35 #define KEY_KP_ADD 4001
36 #define KEY_KP_SUBTRACT 4002
37 #define KEY_KP_MULTIPLY 4003
39 void mc_refresh (void);
41 #endif /* !__MC_TTY_H */