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
ファイルを表示 Open project: pterelaos/revitpythonshell Class Usage Examples

Public Methods

Method 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

Method 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 method

public Flush ( ) : void
return void

Read() public method

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
return int

ScriptOutputStream() public method

public ScriptOutputStream ( ScriptOutput gui, ScriptEngine engine ) : System
gui ScriptOutput
engine ScriptEngine
return System

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

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