Here are the examples of the python api System.Console.Out taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Example 1
def init_connection(self):
sys.stdout = _ReplOutput(self, is_stdout = True, old_out = sys.stdout)
sys.stderr = _ReplOutput(self, is_stdout = False, old_out = sys.stderr)
if sys.platform == 'cli':
import System
self.old_cli_stdout = System.Console.Out
self.old_cli_stderr = System.Console.Error
System.Console.SetOut(DotNetOutput(self, True, System.Console.Out))
System.Console.SetError(DotNetOutput(self, False, System.Console.Error))