1
# -*- test-case-name: twisted.test.test_stdio -*-
2
# Copyright (c) 2001-2010 Twisted Matrix Laboratories.
3
# See LICENSE for details.
6
Standard input/out/err support.
8
This module exposes one name, StandardIO, which is a factory that takes an
9
IProtocol provider as an argument. It connects that protocol to standard input
10
and output on the current process.
12
It should work on any UNIX and also on Win32 (with some caveats: due to
13
platform limitations, it will perform very poorly on Win32).
17
support for stderr, perhaps
18
Rewrite to use the reactor instead of an ad-hoc mechanism for connecting
19
protocols to transport.
22
Maintainer: James Y Knight
25
from twisted.python.runtime import platform
27
if platform.isWindows():
28
from twisted.internet._win32stdio import StandardIO
30
from twisted.internet._posixstdio import StandardIO
32
__all__ = ['StandardIO']