Exemple #1
0
def _get_text_stderr(buffer_stream):
    text_stream = _NonClosingTextIOWrapper(
        _WindowsConsoleWriter(STDERR_HANDLE),
        'utf-16-le',
        'strict',
        line_buffering=True)
    return ConsoleStream(text_stream, buffer_stream)
Exemple #2
0
def _get_text_stdin(buffer_stream):
    text_stream = _NonClosingTextIOWrapper(io.BufferedReader(
        _WindowsConsoleReader(STDIN_HANDLE)),
                                           'utf-16-le',
                                           'strict',
                                           line_buffering=True)
    return ConsoleStream(text_stream, buffer_stream)
Exemple #3
0
def _get_text_stdin(buffer_stream):
    text_stream = _NonClosingTextIOWrapper(
        io.BufferedReader(_WindowsConsoleReader(STDIN_HANDLE)), "utf-16-le", "strict", line_buffering=True
    )
    return ConsoleStream(text_stream, buffer_stream)
Exemple #4
0
def _get_text_stderr(buffer_stream):
    text_stream = _NonClosingTextIOWrapper(
        _WindowsConsoleWriter(STDERR_HANDLE), "utf-16-le", "strict", line_buffering=True
    )
    return ConsoleStream(text_stream, buffer_stream)
Exemple #5
0
def _get_text_stdout(buffer_stream):
    text_stream = _NonClosingTextIOWrapper(
        _WindowsConsoleWriter(STDOUT_HANDLE),
        'utf-16-le', 'strict', line_buffering=True)
    return ConsoleStream(text_stream, buffer_stream)