class TextMode

Useful class to write something in text mode, manages colors

Public Classes

enum ColorId
BLACK
RED
GREEN
BROWN
BLUE
MAGENTA
CYAN
WHITE

Public Methods

TextMode() throw()
~TextMode() throw()
void on() throw()
bool isOn() const throw()
void off() throw()
void clear() throw()
void refresh() throw()
void setForegroundColor(ColorId color) throw()
void setBackgroundColor(ColorId color) throw()
void goTo(int j, int i) throw()
void setBold() throw()
void unsetBold() throw()
void print(const String& s) throw()
void newLine() throw()

Private Fields

bool actif
const int old

Private Methods

void saveState() throw()
void restoreState() throw()

Documentation

Useful class to write something in text mode, manages colors. Uses ANSI codes.
bool actif

const int old

void saveState() throw()

void restoreState() throw()

enum ColorId

BLACK

RED

GREEN

BROWN

BLUE

MAGENTA

CYAN

WHITE

TextMode() throw()

~TextMode() throw()

void on() throw()

bool isOn() const throw()

void off() throw()

void clear() throw()

void refresh() throw()

void setForegroundColor(ColorId color) throw()

void setBackgroundColor(ColorId color) throw()

void goTo(int j, int i) throw()

void setBold() throw()

void unsetBold() throw()

void print(const String& s) throw()

void newLine() throw()


This class has no child classes.
Author:
David FAUTHOUX

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de