treat stdout/stderr as terminal in browser