A namespace that wraps the many functions that interact with the curses terminal used by the program. More...
Classes | |
struct | mouse_info |
Used in mouse events to describe the position and buttons (Actually, not implemented at this time). More... | |
Typedefs | |
typedef SEQMAP::search | SEARCH |
typedef Sequence_Map< char, int > | SEQMAP |
typedef SEQMAP::sequence | SEQUENCE |
Enumerations | |
enum | line_drawing_characters { UL_CORNER, LL_CORNER, UR_CORNER, LR_CORNER, HL_MIDDLE, VL_MIDDLE, PL_BOX, TE_LEFT, TE_RIGHT, TE_BOTTOM, TE_TOP, lcCOUNT } |
logical values for asic representations of box and line fragments More... | |
enum | mouse_down_bits { left = 1, right = 2, middle = 4 } |
enum | special_keys { MouseEvent = 0x8000000, ResizeEvent = -1 } |
non-keys treated as keys with wierd key values More... | |
Functions | |
void | alarm_handler (int signum) |
void | beepCursesTerminal () |
void | closeCursesTerminal () |
void | create_key_sequences_map () |
void | getCursesCursor (int *row, int *col) |
void | getCursesScreenSize (int *row, int *col) |
void | initializeColorPairs () |
void | insert_key_sequence (char const *s, int code) |
void | make_xterm_terminfo_file (FileName const &dir) |
Create the ascii form of the curses terminfo database for later use by the TIC program to create the binary form. If it exists, don't re-create it. If it does not exist, create it and warn the user to look in the documentation. Sadly, linux had to have a different set of key bindings from all other unixes... | |
void | map_init_key_strings () |
int | mapCursesKey (int curses_key) |
void | moveCursesCursor (int row, int col) |
void | openCursesTerminal () |
void | paintCharString (long c, int count, int a, int row, int col) |
void | paintCharString (char const *r, int count, int a, int row, int col) |
int | read_key_char () |
int | read_mapped_key (CursorWindow &) |
mouse_info | read_mouse_info () |
void | refreshCursesWindow () |
void | setCursesAttributes (int a) |
static void | sigwinch_handler (int) |
Variables | |
char * | _map_kbtab |
char * | _map_kdc |
char * | _map_kdn |
char * | _map_kend |
char * | _map_kf1 |
char * | _map_kf10 |
char * | _map_kf11 |
char * | _map_kf12 |
char * | _map_kf2 |
char * | _map_kf3 |
char * | _map_kf4 |
char * | _map_kf5 |
char * | _map_kf6 |
char * | _map_kf7 |
char * | _map_kf8 |
char * | _map_kf9 |
char * | _map_khom |
char * | _map_kic |
char * | _map_klf |
char * | _map_knx |
char * | _map_kpr |
char * | _map_krt |
char * | _map_kup |
static std::string | _saved |
int | alarm_occurred = 0 |
int | att |
int | col |
static int | CursorWindowBlinkingAtt = 3 |
static int | CursorWindowBoldAtt = 4 |
static int | CursorWindowBoldULAtt = 7 |
static int | CursorWindowNormalAtt = 8 |
static int | CursorWindowReverseBoldAtt = 6 |
static int | CursorWindowReversedAtt = 1 |
static int | CursorWindowReverseULAtt = 5 |
static int | CursorWindowRevULBoldAtt = 9 |
static int | CursorWindowUnderlinedAtt = 2 |
SEQMAP | key_sequences |
long | line_chars [lcCOUNT] |
a buffer holding the ASCII values of the line drawing characters | |
bool | resize_requested = false |
int | row |
bool | screen_resize_occurred = 0 |
sigset_t | winch_blocker |
bool | winch_occurred = false |
A namespace that wraps the many functions that interact with the curses terminal used by the program.
typedef SEQMAP::search SEARCH |
Definition at line 116 of file windows_curses.h.
typedef Sequence_Map< char, int > SEQMAP |
Definition at line 115 of file windows_curses.h.
typedef SEQMAP::sequence SEQUENCE |
Definition at line 117 of file windows_curses.h.
logical values for asic representations of box and line fragments
Definition at line 100 of file cursesinterface.h.
enum mouse_down_bits |
Definition at line 73 of file cursesinterface.h.
enum special_keys |
non-keys treated as keys with wierd key values
MouseEvent |
a mouse event has occurred instead of a key being pressed |
ResizeEvent |
a window resize event has occurred instead of a key being pressed |
Definition at line 67 of file cursesinterface.h.
void alarm_handler | ( | int | signum | ) |
void beepCursesTerminal | ( | ) |
void closeCursesTerminal | ( | ) |
Definition at line 485 of file unix_curses.h.
void create_key_sequences_map | ( | ) |
void getCursesCursor | ( | int * | row, | |
int * | col | |||
) |
void getCursesScreenSize | ( | int * | row, | |
int * | col | |||
) |
void cxxtls::CursesInterface::initializeColorPairs | ( | ) |
Definition at line 195 of file windows_curses.h.
void insert_key_sequence | ( | char const * | s, | |
int | code | |||
) |
void make_xterm_terminfo_file | ( | FileName const & | dir | ) |
Create the ascii form of the curses terminfo database for later use by the TIC program to create the binary form. If it exists, don't re-create it. If it does not exist, create it and warn the user to look in the documentation. Sadly, linux had to have a different set of key bindings from all other unixes...
Definition at line 703 of file unix_curses.h.
void map_init_key_strings | ( | ) |
int mapCursesKey | ( | int | curses_key | ) |
Definition at line 65 of file curses_stub.cxx.
void moveCursesCursor | ( | int | row, | |
int | col | |||
) |
void openCursesTerminal | ( | ) |
Definition at line 229 of file unix_curses.h.
void paintCharString | ( | long | c, | |
int | count, | |||
int | a, | |||
int | row, | |||
int | col | |||
) |
void paintCharString | ( | char const * | r, | |
int | count, | |||
int | a, | |||
int | row, | |||
int | col | |||
) |
Definition at line 652 of file unix_curses.h.
int read_key_char | ( | ) |
int read_mapped_key | ( | CursorWindow & | ) |
Definition at line 1108 of file unix_curses.h.
mouse_info read_mouse_info | ( | ) |
void refreshCursesWindow | ( | ) |
void setCursesAttributes | ( | int | a | ) |
static void sigwinch_handler | ( | int | ) | [static] |
char * _map_kbtab |
Definition at line 82 of file windows_curses.h.
char * _map_kdc |
Definition at line 75 of file windows_curses.h.
char * _map_kdn |
Definition at line 79 of file windows_curses.h.
char * _map_kend |
Definition at line 73 of file windows_curses.h.
char * _map_kf1 |
Definition at line 60 of file windows_curses.h.
char * _map_kf10 |
Definition at line 69 of file windows_curses.h.
char * _map_kf11 |
Definition at line 70 of file windows_curses.h.
char * _map_kf12 |
Definition at line 71 of file windows_curses.h.
char * _map_kf2 |
Definition at line 61 of file windows_curses.h.
char * _map_kf3 |
Definition at line 62 of file windows_curses.h.
char * _map_kf4 |
Definition at line 63 of file windows_curses.h.
char * _map_kf5 |
Definition at line 64 of file windows_curses.h.
char * _map_kf6 |
Definition at line 65 of file windows_curses.h.
char * _map_kf7 |
Definition at line 66 of file windows_curses.h.
char * _map_kf8 |
Definition at line 67 of file windows_curses.h.
char * _map_kf9 |
Definition at line 68 of file windows_curses.h.
char * _map_khom |
Definition at line 72 of file windows_curses.h.
char * _map_kic |
Definition at line 74 of file windows_curses.h.
char * _map_klf |
Definition at line 80 of file windows_curses.h.
char * _map_knx |
Definition at line 77 of file windows_curses.h.
char * _map_kpr |
Definition at line 76 of file windows_curses.h.
char * _map_krt |
Definition at line 81 of file windows_curses.h.
char * _map_kup |
Definition at line 78 of file windows_curses.h.
static std::string _saved [static] |
Definition at line 949 of file windows_curses.h.
int alarm_occurred = 0 |
Definition at line 857 of file windows_curses.h.
int att |
Definition at line 53 of file curses_stub.cxx.
int col |
Definition at line 51 of file curses_stub.cxx.
int CursorWindowBlinkingAtt = 3 [static] |
Definition at line 186 of file windows_curses.h.
int CursorWindowBoldAtt = 4 [static] |
Definition at line 187 of file windows_curses.h.
int CursorWindowBoldULAtt = 7 [static] |
Definition at line 190 of file windows_curses.h.
int CursorWindowNormalAtt = 8 [static] |
Definition at line 191 of file windows_curses.h.
int CursorWindowReverseBoldAtt = 6 [static] |
Definition at line 189 of file windows_curses.h.
int CursorWindowReversedAtt = 1 [static] |
Definition at line 184 of file windows_curses.h.
int CursorWindowReverseULAtt = 5 [static] |
Definition at line 188 of file windows_curses.h.
int CursorWindowRevULBoldAtt = 9 [static] |
Definition at line 192 of file windows_curses.h.
int CursorWindowUnderlinedAtt = 2 [static] |
Definition at line 185 of file windows_curses.h.
Definition at line 119 of file windows_curses.h.
long line_chars |
a buffer holding the ASCII values of the line drawing characters
Definition at line 58 of file windows_curses.h.
bool resize_requested = false |
Definition at line 57 of file cursesinterface.cxx.
int row |
Definition at line 50 of file curses_stub.cxx.
bool screen_resize_occurred = 0 |
Definition at line 98 of file unix_curses.h.
sigset_t winch_blocker |
Definition at line 185 of file unix_curses.h.
bool winch_occurred = false |
Definition at line 56 of file cursesinterface.cxx.