win32api.GetStdHandle

GetStdHandle(handle)

Returns a handle for the standard input, standard output, or standard error device

Parameters

handle : int

input, output, or error device