Generated by DocFX

Class DotNetConsole

Inheritance
System.Object
DotNetConsole
Implements
IConsole
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: Dotnet.Shell.Logic.Console
Assembly: dotnet-shell-lib.dll
Syntax
public class DotNetConsole : IConsole

Properties

| Improve this Doc View Source

BackgroundColor

Declaration
public ConsoleColor BackgroundColor { get; set; }
Property Value
Type Description
System.ConsoleColor
| Improve this Doc View Source

CursorLeft

Declaration
public int CursorLeft { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

CursorTop

Declaration
public int CursorTop { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

ForegroundColor

Declaration
public ConsoleColor ForegroundColor { get; set; }
Property Value
Type Description
System.ConsoleColor
| Improve this Doc View Source

KeyAvailiable

Declaration
public bool KeyAvailiable { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

ClearCurrentLine(Int32)

Declaration
public void ClearCurrentLine(int pos = -1)
Parameters
Type Name Description
System.Int32 pos
| Improve this Doc View Source

MoveCursorDown(Int32)

Declaration
public void MoveCursorDown(int lines)
Parameters
Type Name Description
System.Int32 lines
| Improve this Doc View Source

MoveCursorUp(Int32)

Declaration
public void MoveCursorUp(int lines)
Parameters
Type Name Description
System.Int32 lines
| Improve this Doc View Source

ReadKey()

Declaration
public ConsoleKeyInfo ReadKey()
Returns
Type Description
System.ConsoleKeyInfo
| Improve this Doc View Source

RestoreAsync()

Declaration
public Task RestoreAsync()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

RestoreCursorPosition(Action)

Declaration
public void RestoreCursorPosition(Action onRestore = null)
Parameters
Type Name Description
System.Action onRestore
| Improve this Doc View Source

SaveAsync()

Declaration
public Task SaveAsync()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

SaveCursorPosition()

Declaration
public void SaveCursorPosition()
| Improve this Doc View Source

Write(String)

Declaration
public void Write(string text)
Parameters
Type Name Description
System.String text
| Improve this Doc View Source

WriteLine(String)

Declaration
public void WriteLine(string message)
Parameters
Type Name Description
System.String message

Explicit Interface Implementations

| Improve this Doc View Source

IConsole.CursorVisible

Declaration
bool IConsole.CursorVisible { set; }
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IConsole.WindowHeight

Declaration
int IConsole.WindowHeight { get; }
Returns
Type Description
System.Int32
| Improve this Doc View Source

IConsole.WindowWidth

Declaration
int IConsole.WindowWidth { get; }
Returns
Type Description
System.Int32

Implements

IConsole