1
1
mc/src/tty.h
Pavel Roskin ef9a43a7a3 * tty.h [!HAVE_SLANG]: Remove all slang_* definitions.
* main.c (main) [!HAVE_SLANG]: Don't call slang_shutdown().
* myslang.h: Remove slang_done_screen(), it's unused.
2002-09-08 16:22:54 +00:00

36 строки
759 B
C

#ifndef __MC_TTY_H
#define __MC_TTY_H
/* This file takes care of loading ncurses or slang */
int got_interrupt (void);
#ifdef HAVE_SLANG
# include "myslang.h"
#else
# define enable_interrupt_key()
# define disable_interrupt_key()
# define acs()
# define noacs()
# define one_vline() addch (slow_terminal ? ' ' : ACS_VLINE)
# define one_hline() addch (slow_terminal ? ' ' : ACS_HLINE)
#endif
#ifdef USE_NCURSES
# ifdef HAVE_NCURSES_CURSES_H
# include <ncurses/curses.h>
# elif HAVE_NCURSES_H
# include <ncurses.h>
# else
# include <curses.h>
# endif
#endif /* USE_NCURSES */
#define KEY_KP_ADD 4001
#define KEY_KP_SUBTRACT 4002
#define KEY_KP_MULTIPLY 4003
void mc_refresh (void);
#endif /* !__MC_TTY_H */