Class TextScreenBase
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.HAL
Assembly: Cosmos.HAL2.dll
Syntax
public abstract class TextScreenBase : Device
Properties
| Improve this Doc View SourceBackground
Declaration
public ConsoleColor Background { get; set; }
Property Value
Type | Description |
---|---|
System.ConsoleColor |
Cols
Get number of columns in text screen.
Declaration
public abstract ushort Cols { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Foreground
Declaration
public ConsoleColor Foreground { get; set; }
Property Value
Type | Description |
---|---|
System.ConsoleColor |
Item[Int32, Int32]
Declaration
public abstract byte this[int x, int y] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | |
System.Int32 | y |
Property Value
Type | Description |
---|---|
System.Byte |
Rows
Get number of rows in text screen.
Declaration
public abstract ushort Rows { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Methods
| Improve this Doc View SourceClear()
Clear text screen.
Declaration
public abstract void Clear()
GetColor()
Get screen color.
Declaration
public abstract byte GetColor()
Returns
Type | Description |
---|---|
System.Byte | byte value. |
GetCursorSize()
Get cursor size.
Declaration
public abstract int GetCursorSize()
Returns
Type | Description |
---|---|
System.Int32 | int value. |
GetCursorVisible()
Declaration
public abstract bool GetCursorVisible()
Returns
Type | Description |
---|---|
System.Boolean |
ScrollUp()
Scroll screen up.
Declaration
public abstract void ScrollUp()
SetColors(ConsoleColor, ConsoleColor)
Get and set console foreground color.
Declaration
public abstract void SetColors(ConsoleColor aForeground, ConsoleColor aBackground)
Parameters
Type | Name | Description |
---|---|---|
System.ConsoleColor | aForeground | |
System.ConsoleColor | aBackground |
SetCursorPos(Int32, Int32)
Set cursor position.
Declaration
public abstract void SetCursorPos(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | A position on X axis. |
System.Int32 | y | A position on Y axis. |
SetCursorSize(Int32)
Declaration
public abstract void SetCursorSize(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value |
SetCursorVisible(Boolean)
Declaration
public abstract void SetCursorVisible(bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value |