add character support for win32 console