Bug fix: STD_{INPUT,OUTPUT,ERROR}_HANDLE should be c_ulong instead of HANDLE. It's the windll.kernel32.GetStdHandle system call that turns this number into a HANDLE object.
Bug fix: STD_{INPUT,OUTPUT,ERROR}_HANDLE should be c_ulong instead of HANDLE. It's the windll.kernel32.GetStdHandle system call that turns this number into a HANDLE object.

melund/python-prompt-toolkit,amjith/python-prompt-toolkit,jonathanslenders/python-prompt-toolkit,jaseg/python-prompt-toolkit,niklasf/python-prompt-toolkit,ddalex/python-prompt-toolkit,ALSchwalm/python-prompt-toolkit