PromptPlus API:IOutputDrive
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
Error
Get standard error stream.
public abstract TextWriter Error { get; }
Property Value
IsErrorRedirected
Gets a value that indicates whether error has been redirected from the standard error stream.
public abstract bool IsErrorRedirected { get; }
Property Value
IsOutputRedirected
Gets a value that indicates whether output has been redirected from the standard output stream.
public abstract bool IsOutputRedirected { get; }
Property Value
Out
Get standard output stream.
public abstract TextWriter Out { get; }
Property Value
OutputEncoding
Get/set an encoding for standard output stream.
public abstract Encoding OutputEncoding { get; set; }
Property Value
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.