123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #ifndef BDE_TERMINAL_H
- #define BDE_TERMINAL_H
- #include <config.h>
- #ifdef HAVE_WIDE_CURSES
- # define _XOPEN_SOURCE_EXTENDED 1
- #endif
-
- #if defined(HAVE_NCURSESW_NCURSES_H)
- # include <ncursesw/ncurses.h>
- #elif defined(HAVE_NCURSES_H)
- # include <ncurses.h>
- #else
- # include <curses.h>
- #endif
- #ifdef USE_GETTEXT
- # include <libintl.h>
- # define _(String) gettext(String)
- # define gettext_noop(String) String
- # define N_(String) gettext_noop(String)
- #else
- # define _(String) String
- # define N_(String) String
- # define textdomain(Domain)
- # define bindtextdomain(Package, Directory)
- #endif
- class terminal {
- private:
- static bool initialized;
- public:
- static bool is_utf8;
- static bool force_iso88598;
- static bool is_fixed;
-
-
- static bool is_color;
-
- static bool use_default_colors;
- static bool do_arabic_shaping;
- static bool graphical_boxes;
- static void init();
- static void finish();
- static bool was_ctrl_c_pressed();
- static bool is_interactive();
- static void determine_locale();
- static bool under_x11();
- };
- void DISABLE_SIGTSTP();
- #endif
|