repl-server support for output interception