process.monkey2 740 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #Import "native/process.h"
  2. #Import "native/process.cpp"
  3. Namespace mojo.process
  4. Extern
  5. Class Process="bbProcess"
  6. Field Finished:Void()="finished"
  7. Field StdoutReady:Void()="stdoutReady"
  8. Field StderrReady:Void()="stderrReady"
  9. Property ExitCode:Int()="exitCode"
  10. Property StdoutAvail:Int()="stdoutAvail"
  11. Property StderrAvail:Int()="stderrAvail"
  12. Method Start:Bool( cmd:String )="start"
  13. Method ReadStdout:String()="readStdout"
  14. Method ReadStdout:Int( buf:Void Ptr,count:Int )="readStdout"
  15. Method ReadStderr:String()="readStderr"
  16. Method ReadStderr:Int( buf:Void Ptr,count:Int )="readStderr"
  17. Method WriteStdin( str:String )="writeStdin"
  18. Method SendBreak()="sendBreak"
  19. Method Terminate:Void()="terminate"
  20. End