C# Class RevitPythonShell.ScriptOutputStream

A stream to write output to... This can be passed into the python interpreter to render all output to. Only a minimal subset is actually implemented - this is all we really expect to use.
Inheritance: Stream
Afficher le fichier Open project: pterelaos/revitpythonshell Class Usage Examples

Méthodes publiques

Méthode Description
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int

Read from the _inputBuffer, block until a new line has been entered...

ScriptOutputStream ( ScriptOutput gui, ScriptEngine engine ) : System
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Append the text in the buffer to gui.txtStdOut

Private Methods

Méthode Description
ClosedEventHandler ( object sender, EventArgs e ) : void
ClosingEventHandler ( object sender, System e ) : void

Terminate reading from STDIN. FIXME: this doesn't work!

KeyDownEventHandler ( object sender, KeyEventArgs e ) : void

Complete a line when the enter key is pressed. Also try to emulate a nice control window. This is going to be a big gigantic pile of ifs, sigh.

KeyPressEventHandler ( object sender, KeyPressEventArgs e ) : void

Stash away any printable characters for later...

Method Details

Flush() public méthode

public Flush ( ) : void
Résultat void

Read() public méthode

Read from the _inputBuffer, block until a new line has been entered...
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

ScriptOutputStream() public méthode

public ScriptOutputStream ( ScriptOutput gui, ScriptEngine engine ) : System
gui ScriptOutput
engine ScriptEngine
Résultat System

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

Append the text in the buffer to gui.txtStdOut
public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void