Posted to tcl by jsuntheimer72 at Sun Feb 11 17:21:14 GMT 2018view raw

  1. # Create stdout/stderr interception mechanism.
  2. namespace eval ::sdx::Intercept {
  3. proc initialize {chan mode} {info procs}
  4. proc finalize {chan} {}
  5. proc clear {chan} {}
  6. proc flush {chan} {}
  7. proc write {chan data} {append ::sdx::Intercept::Output $data; return}
  8. namespace export *
  9. namespace ensemble create
  10. }