You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
colorama.win32.GetConsoleScreenBufferInfo().dwCursorPosition is unreliable when used immediately after Cursor movement codes:
The following code has shown the issue and is repeatable for me:
fromtimeimportsleepfromcoloramaimportCursorimportcoloramacolorama.just_fix_windows_console()
space=10print(1)
print("\n"*space,Cursor.UP(space),end="\r",sep="") # run with end="" and end="\r"sleep(1) # take note of where the cursor is while 'sleeping'pos=colorama.win32.GetConsoleScreenBufferInfo().dwCursorPositionprint(2)
print("pos:",pos.Y)
By having end="" the Y position is calculated while not respecting the movement done by Cursor.UP, however having something print after the reposition fixes the issue.
The text was updated successfully, but these errors were encountered:
Reported by the fabulous @LqdBcnAtWork in #352:
colorama.win32.GetConsoleScreenBufferInfo().dwCursorPosition is unreliable when used immediately after Cursor movement codes:
The following code has shown the issue and is repeatable for me:
By having end="" the Y position is calculated while not respecting the movement done by Cursor.UP, however having something print after the reposition fixes the issue.
The text was updated successfully, but these errors were encountered: