Skip to the content.

PromptPlus API:IOutputDrive

Build Publish License NuGet Downloads

Back to List Api

IOutputDrive

Namespace: PPlus

Represents the interface for output console.

public interface IOutputDrive : IBackendTextWrite

Implements IBackendTextWrite

Properties

CodePage

Get output CodePage.

public abstract int CodePage { get; }

Property Value

Int32

Error

Get standard error stream.

public abstract TextWriter Error { get; }

Property Value

TextWriter

IsErrorRedirected

Gets a value that indicates whether error has been redirected from the standard error stream.

public abstract bool IsErrorRedirected { get; }

Property Value

Boolean

IsOutputRedirected

Gets a value that indicates whether output has been redirected from the standard output stream.

public abstract bool IsOutputRedirected { get; }

Property Value

Boolean

Out

Get standard output stream.

public abstract TextWriter Out { get; }

Property Value

TextWriter

OutputEncoding

Get/set an encoding for standard output stream.

public abstract Encoding OutputEncoding { get; set; }

Property Value

Encoding

Methods

Beep()

Plays the sound of a beep through the console speaker.

void Beep()

Clear()

Clears the console buffer and corresponding console window of display information.
Move cursor fom top console.

void Clear()

SetError(TextWriter)

set standard error stream.

void SetError(TextWriter value)

Parameters

value TextWriter
A stream that is the new standard error.

SetOut(TextWriter)

set standard output stream.

void SetOut(TextWriter value)

Parameters

value TextWriter
A stream that is the new standard output.


Back to List Api