cxxtls::CursesInterface Namespace Reference

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

Detailed Description

A namespace that wraps the many functions that interact with the curses terminal used by the program.


Typedef Documentation

Definition at line 116 of file windows_curses.h.

typedef Sequence_Map< char, int > SEQMAP

Definition at line 115 of file windows_curses.h.

Definition at line 117 of file windows_curses.h.


Enumeration Type Documentation

logical values for asic representations of box and line fragments

Enumerator:
UL_CORNER 

upper left corner

LL_CORNER 

lower left corner

UR_CORNER 

upper right corner

LR_CORNER 

lower right corner

HL_MIDDLE 

horizontal line (middle of char chell)

VL_MIDDLE 

verticlal line (middle of char cell)

PL_BOX 

big plus sign

TE_LEFT 

tee pointing right

TE_RIGHT 

tee pointing left

TE_BOTTOM 

tee pointing up

TE_TOP 

tee pointing down

lcCOUNT 

Definition at line 100 of file cursesinterface.h.

Enumerator:
left 
right 
middle 

Definition at line 73 of file cursesinterface.h.

non-keys treated as keys with wierd key values

Enumerator:
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.


Function Documentation

void alarm_handler ( int  signum  ) 

Definition at line 1090 of file unix_curses.h.

Here is the caller graph for this function:

void beepCursesTerminal (  ) 

Definition at line 691 of file unix_curses.h.

Here is the caller graph for this function:

void closeCursesTerminal (  ) 

Definition at line 485 of file unix_curses.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void create_key_sequences_map (  ) 

Definition at line 147 of file curses_stub.cxx.

Here is the caller graph for this function:

void getCursesCursor ( int *  row,
int *  col 
)

Definition at line 581 of file unix_curses.h.

Here is the caller graph for this function:

void getCursesScreenSize ( int *  row,
int *  col 
)

Definition at line 586 of file unix_curses.h.

Here is the caller graph for this function:

void cxxtls::CursesInterface::initializeColorPairs (  ) 

Definition at line 195 of file windows_curses.h.

void insert_key_sequence ( char const *  s,
int  code 
)

Definition at line 166 of file unix_curses.h.

Here is the call graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

void map_init_key_strings (  ) 

Definition at line 131 of file unix_curses.h.

Here is the caller graph for this function:

int mapCursesKey ( int  curses_key  ) 

Definition at line 65 of file curses_stub.cxx.

void moveCursesCursor ( int  row,
int  col 
)

Definition at line 697 of file unix_curses.h.

Here is the caller graph for this function:

void openCursesTerminal (  ) 

Definition at line 229 of file unix_curses.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void paintCharString ( long  c,
int  count,
int  a,
int  row,
int  col 
)

Definition at line 669 of file unix_curses.h.

Here is the call graph for this function:

void paintCharString ( char const *  r,
int  count,
int  a,
int  row,
int  col 
)

Definition at line 652 of file unix_curses.h.

Here is the call graph for this function:

Here is the caller graph for this function:

int read_key_char (  ) 

Definition at line 154 of file curses_stub.cxx.

Here is the caller graph for this function:

int read_mapped_key ( CursorWindow &   ) 

Definition at line 1108 of file unix_curses.h.

Here is the call graph for this function:

Here is the caller graph for this function:

mouse_info read_mouse_info (  ) 

Definition at line 189 of file curses_stub.cxx.

Here is the caller graph for this function:

void refreshCursesWindow (  ) 

Definition at line 686 of file unix_curses.h.

Here is the caller graph for this function:

void setCursesAttributes ( int  a  ) 

Definition at line 601 of file unix_curses.h.

Here is the caller graph for this function:

static void sigwinch_handler ( int   )  [static]

Definition at line 1098 of file unix_curses.h.

Here is the caller graph for this function:


Variable Documentation

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.

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.

Generated on Wed Feb 29 22:58:54 2012 for CXXUtilities by  doxygen 1.6.3