Class ConsoleDriver
ConsoleDriver is an abstract class that defines the requirements for a console driver. One implementation if the CursesDriver, and another one uses the .NET Console one.
Inheritance
System.Object
ConsoleDriver
Namespace: Terminal
Assembly: Terminal.dll
Syntax
public abstract class ConsoleDriver
Constructors
ConsoleDriver()
Declaration
protected ConsoleDriver ();
Properties
Clip
Declaration
public Terminal.Rect Clip { get; set; }
Property Value
Type | Description |
---|---|
Rect | To be added. |
Cols
Declaration
public abstract int Cols { get; }
Property Value
Type | Description |
---|---|
System.Int32 | To be added. |
Rows
Declaration
public abstract int Rows { get; }
Property Value
Type | Description |
---|---|
System.Int32 | To be added. |
Methods
AddCh(Int32)
Declaration
public abstract void AddCh (int ch);
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | ch | To be added. |
AddSpecial(SpecialChar)
Declaration
public abstract void AddSpecial (Terminal.SpecialChar ch);
Parameters
Type | Name | Description |
---|---|---|
SpecialChar | ch | To be added. |
AddStr(String)
Declaration
public abstract void AddStr (string str);
Parameters
Type | Name | Description |
---|---|---|
System.String | str | To be added. |
DrawFrame(Rect, Boolean)
Declaration
public abstract void DrawFrame (Terminal.Rect region, bool fill);
Parameters
Type | Name | Description |
---|---|---|
Rect | region | To be added. |
System.Boolean | fill | To be added. |
End()
Declaration
public abstract void End ();
Init(Action)
Declaration
public abstract void Init (Action terminalResized);
Parameters
Type | Name | Description |
---|---|---|
System.Action | terminalResized | To be added. |
Move(Int32, Int32)
Declaration
public abstract void Move (int col, int row);
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | col | To be added. |
System.Int32 | row | To be added. |
PrepareToRun(MainLoop, Action<KeyEvent>, Action<MouseEvent>)
Declaration
public abstract void PrepareToRun (Mono.Terminal.MainLoop mainLoop, Action<Terminal.KeyEvent> target, Action<Terminal.MouseEvent> mouse);
Parameters
Type | Name | Description |
---|---|---|
Mono.Terminal.MainLoop | mainLoop | To be added. |
System.Action<KeyEvent> | target | To be added. |
System.Action<MouseEvent> | mouse | To be added. |
RedrawTop()
Declaration
public abstract void RedrawTop ();
Refresh()
Declaration
public abstract void Refresh ();
SetAttribute(Attribute)
Declaration
public abstract void SetAttribute (Terminal.Attribute c);
Parameters
Type | Name | Description |
---|---|---|
Attribute | c | To be added. |
SetColors(ConsoleColor, ConsoleColor)
Declaration
public abstract void SetColors (ConsoleColor foreground, ConsoleColor background);
Parameters
Type | Name | Description |
---|---|---|
System.ConsoleColor | foreground | To be added. |
System.ConsoleColor | background | To be added. |
SetColors(Int16, Int16)
Declaration
public abstract void SetColors (short foreColorId, short backgroundColorId);
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | foreColorId | To be added. |
System.Int16 | backgroundColorId | To be added. |
StartReportingMouseMoves()
Declaration
public abstract void StartReportingMouseMoves ();
StopReportingMouseMoves()
Declaration
public abstract void StopReportingMouseMoves ();
Suspend()
Declaration
public abstract void Suspend ();