2 from win_unicode_console import streams, console, readline_hook
8 streams=["stdin", "stdout", "stderr"],
10 use_readline_hook=True,
15 if use_readline_hook and use_pyreadline and readline_hook.pyreadline:
17 # pyreadline assumes that encoding of all sys.stdio objects is the same
24 # actually Python REPL assumes that sys.stdin.encoding == sys.stdout.encoding and cannot handle UTF-16 on both input and output
26 streams_.enable(streams, transcode=transcode)
29 readline_hook.enable(use_pyreadline=use_pyreadline)
35 if console.running_console is not None:
38 readline_hook.disable()