You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's actually perfectly fine to call curses.setupterm(kind, open(os.devnull).fileno()).
More importantly, this removes a chunk of documentation and comments, such as:
Terminal initialization sequences will be sent to ``stream`` if it
has a file descriptor and to ``sys.__stdout__`` otherwise. (``setupterm()`` demands to send them
somewhere, and stdout is probably where the output is ultimately
headed. If not, stderr is probably bound to the same terminal.)
and
# (...) Explicit args make setupterm()
# work even when -s is passed to nosetests. Lean toward sending
# init sequences to the stream if it has a file descriptor, and
# send them to stdout as a fallback, since they have to go
# somewhere.
The text was updated successfully, but these errors were encountered:
It's actually perfectly fine to call
curses.setupterm(kind, open(os.devnull).fileno())
.More importantly, this removes a chunk of documentation and comments, such as:
and
The text was updated successfully, but these errors were encountered: