Main Page | Modules | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

EscapeLineFilter Class Reference
[Character input filters.]

#import <EscapeLineFilter.h>

Inherits CharacterLineFilter.

Inheritance diagram for EscapeLineFilter:

Inheritance graph
[legend]
Collaboration diagram for EscapeLineFilter:

Collaboration graph
[legend]

Detailed Description

The escape-character line filter for ANSI terminals.

Uses a simple state machine to accumulate parameters until the command is complete, then composes a message to the target terminal.

Definition at line 14 of file EscapeLineFilter.h.

Public Member Functions

(id) - initWithFallback:terminal:
 Designated initializer.
(id) - processCharacter:
 Process a character from the host.

Protected Attributes

int state
 Processing state.
int params [16]
 Numeric parameters (up to 16).
int paramCount
 Number of parameters.
unsigned char charsetSelector
 Character-set selector (recognized but not used).
BOOL ignore
 Whether to accept the rest of the command and ignore it.


Member Function Documentation

- (id) initWithFallback: (id)  prevFilter
terminal: (id)  terminal
 
 

Designated initializer.

Initializes the parameter count and state variable.

Reimplemented from CharacterLineFilter.

- (id) processCharacter: (unichar)  character  
 

Process a character from the host.

In a new EscapeLineFilter (state == 0), this will be the first character after the escape; characters will change the state of the filter and be interpreted in light of the accumulated state.

Parameters:
[in] character The character from the host.
Return values:
CharacterLineFilter The handler for the next character from the host.

Reimplemented from CharacterLineFilter.


Field Documentation

- (unsigned char) charsetSelector [protected]
 

Character-set selector (recognized but not used).

Definition at line 18 of file EscapeLineFilter.h.

- (BOOL) ignore [protected]
 

Whether to accept the rest of the command and ignore it.

Definition at line 19 of file EscapeLineFilter.h.

- (int) paramCount [protected]
 

Number of parameters.

Definition at line 17 of file EscapeLineFilter.h.

- (int params[16]) [protected]
 

Numeric parameters (up to 16).

Definition at line 16 of file EscapeLineFilter.h.

- (int) state [protected]
 

Processing state.

Definition at line 15 of file EscapeLineFilter.h.


The documentation for this class was generated from the following file:
Generated on Fri Sep 30 12:01:13 2005 for Crescat by  doxygen 1.4.4