def get_position(stream=STD_OUTPUT_HANDLE):
stream = kernel32.GetStdHandle(stream)<EOL>csbi = CONSOLE_SCREEN_BUFFER_INFO()<EOL>kernel32.GetConsoleScreenBufferInfo(stream, byref(csbi))<EOL>pos = csbi.dwCursorPosition<EOL>return (pos.X + <NUM_LIT:1>, pos.Y + <NUM_LIT:1>)<EOL>
Returns current position of cursor, starts at 1.