Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Filter_console Class Reference

#include <filter_console.h>

Inheritance diagram for Filter_console:

Console List of all members.

Public Member Functions

 Filter_console (Console *o, int to=8000)
 ~Filter_console ()
int write (char const *str, size_t len)
 Write a string of len chacters to the output.
int getchar (bool blocking=true)
 read a charcater from the input.
int char_avail () const
 Is input available?
Mword get_attributes () const
 Console attributes.

Private Types

enum  { NORMAL, UNKNOWN_ESC, GOT_CSI }

Private Member Functions

int getchar_timeout (unsigned timeout)

Private Attributes

Console *const _o
int csi_timeout
enum Filter_console:: { ... }  state
unsigned pos
char ibuf [32]
unsigned arg
int args [4]

Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
NORMAL 
UNKNOWN_ESC 
GOT_CSI  control sequence introducer


Constructor & Destructor Documentation

Filter_console::Filter_console Console o,
int  to = 8000
 

Filter_console::~Filter_console  ) 
 


Member Function Documentation

int Filter_console::char_avail  )  const [virtual]
 

Is input available?

This method can be implemented. It must return -1 if no information is available, 1 if at least one character is avialable, and 0 if no charachter is available.

Reimplemented from Console.

Mword Filter_console::get_attributes  )  const [virtual]
 

Console attributes.

Reimplemented from Console.

int Filter_console::getchar bool  blocking = true  )  [virtual]
 

read a charcater from the input.

Parameters:
blocking if true getchar blocks til a charcater is available.
This method must be implemented in every implementation, but can simply return -1 for output only consoles.

Reimplemented from Console.

int Filter_console::getchar_timeout unsigned  timeout  )  [inline, private]
 

int Filter_console::write char const *  str,
size_t  len
[virtual]
 

Write a string of len chacters to the output.

Parameters:
str the string to write (no zero termination is needed)
len the number of chacters to write.
This method must be implemented in every implementation, but can simply do nothing for input only consoles.

Reimplemented from Console.


Member Data Documentation

Console* const Filter_console::_o [private]
 

unsigned Filter_console::arg [private]
 

int Filter_console::args[4] [private]
 

int Filter_console::csi_timeout [private]
 

char Filter_console::ibuf[32] [private]
 

unsigned Filter_console::pos [private]
 

enum { ... } Filter_console::state [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 26 14:20:14 2005 for Fiasco by  doxygen 1.4.2