Fix cursor misalignment after displaying detailed traceback

This commit is contained in:
pagedown 2023-03-01 12:04:04 +08:00
parent 08c0321fc4
commit 3d50c1ea5a
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -55,7 +55,7 @@ def real_main(args: List[str]) -> None:
tb = data['tb'] tb = data['tb']
for ln in tb.splitlines(): for ln in tb.splitlines():
print('\r\n', ln, sep='', end='') print('\r\n', ln, sep='', end='')
print(flush=True) print(end='\r\n', flush=True)
hold_till_enter() hold_till_enter()