PyConsoleScreenBuffer.SetStdHandle

SetStdHandle(StdHandle)

Replaces one of calling process's standard handles with this handle

Parameters

StdHandle : int

Specifies handle to be replaced - STD_INPUT_HANDLE, STD_OUTPUT_HANDLE, or STD_ERROR_HANDLE