windows_curses.h File Reference

This is really a .c file, not a .h file. It defines a wrapper around curses that is used by cursorwindow.c. This file defines the MS windows implementation of a curses simulation based on the pdcurses library. More...

#include <cxxtls/cursorwindow.h>
#include <cxxtls/sequence_map.h>
#include <string>
#include <stdlib.h>
#include <io.h>
#include <signal.h>
#include <algorithm>
#include <cxxtls/file.h>
#include <cxxtls/user.h>
#include <cxxtls/machine.h>
#include <iostream>
#include <fstream>
#include <portable_io.h>
#include <cxxtls/cursesinterface.h>
#include <term.h>
Include dependency graph for windows_curses.h:

Go to the source code of this file.

Namespaces

namespace  cxxtls
 

The namespace that encapsulates most of the functionality in the CXX toolkit.


namespace  cxxtls::CursesInterface
 

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


Typedefs

typedef SEQMAP::search SEARCH
typedef Sequence_Map< char, int > SEQMAP
typedef SEQMAP::sequence SEQUENCE

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
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

Detailed Description

This is really a .c file, not a .h file. It defines a wrapper around curses that is used by cursorwindow.c. This file defines the MS windows implementation of a curses simulation based on the pdcurses library.

Definition in file windows_curses.h.

Generated on Wed Feb 29 22:51:35 2012 for CXXUtilities by  doxygen 1.6.3