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

console.h: Basic console IO
[platform independant portions of code]


Typedefs

typedef enum _ConsoleColourFormat ConsoleColourFormat
typedef ErrorCode(* ConsoleCharacterListener )(int c)

Enumerations

enum  _ConsoleColourFormat { ConsoleColour_TFgIBgI_844, ConsoleColour_TBgIFgI_844 }

Functions

ErrorCode consoleClear (void)
ErrorCode consolePutChar (int c)
ErrorCode consoleGetFormat (ConsoleColourFormat *format)
ErrorCode consoleGetFrameBuffer (Pointer *buffer)
ErrorCode consoleGetSize (uint32 *rows, uint32 *cols)
ErrorCode consoleEnableCharacterListener (ConsoleCharacterListener charListener)
ErrorCode consoleDisableCharacterListener (ConsoleCharacterListener charListener)
ErrorCode consoleLockScrollWindowRect (uint32 row1, uint32 col1, uint32 row2, uint32 col2)
ErrorCode consoleLockScrollWindow (uint32 row1, uint32 row2)

Detailed Description

This file defines a interface for working with multiple consoles

Typedef Documentation

typedef ErrorCode(* ConsoleCharacterListener)(int c)
 

TODO: types for Character? CharacterWide, Character16?

Definition at line 30 of file console.h.

typedef enum _ConsoleColourFormat ConsoleColourFormat
 


Enumeration Type Documentation

enum _ConsoleColourFormat
 

Enumerator:
ConsoleColour_TFgIBgI_844 
ConsoleColour_TBgIFgI_844 

Definition at line 23 of file console.h.


Function Documentation

ErrorCode consoleClear void   ) 
 

ErrorCode consoleDisableCharacterListener ConsoleCharacterListener  charListener  ) 
 

ErrorCode consoleEnableCharacterListener ConsoleCharacterListener  charListener  ) 
 

TODO: the following could probably be done better... for now, they're just here to prove that the serial driver works (they're also defined in arch, for now, but can possible be moved to independant portion)

ErrorCode consoleGetFormat ConsoleColourFormat format  ) 
 

ErrorCode consoleGetFrameBuffer Pointer buffer  ) 
 

ErrorCode consoleGetSize uint32 rows,
uint32 cols
 

ErrorCode consoleLockScrollWindow uint32  row1,
uint32  row2
 

ErrorCode consoleLockScrollWindowRect uint32  row1,
uint32  col1,
uint32  row2,
uint32  col2
 

ErrorCode consolePutChar int  c  ) 
 


Generated on Wed Mar 22 20:36:34 2006 for ndk by  doxygen 1.4.4