How do I get the cursor in console output to show up at the end of the line after 2nd input statement?

已回答

In the console output the cursor always shows up at the left of the line after the 2nd input while loop iteration and only after I press a key will it reset to the end of the line? Is there a fix or option to toggle for this? Thanks! See attached screenshot. 

2
Avatar
Permanently deleted user

Plus one here. Want to know about solution as well!

 

 

0
Avatar
Permanently deleted user

For now the only workaround is that I've commented out the print statement and added a duplicate input statement at the except which seems to put the cursor in the correct place, that would make you think the culprit is the print statement and somewhow when used in a while loop it messes the output of the 2nd input statement in console in pycharm, this works fine in terminal btw...

0

Hi! I created a separate ticket for this problem in our bug tracker: PY-26264. Please follow it for updates.

0
Avatar
Permanently deleted user

Thanks Pavel. Will follow it there! 

0
Avatar
Permanently deleted user

Wanted to add an update on this, the problem doesnt happen if you place the while True:  statement after the input statement. 

0

请先登录再写评论。