Search code examples
pythonconsolepycharmbackspace

'\b' doesn't print backspace in PyCharm console


I am trying to update the last line in PyCharm's console. Say, I print a and then I want to change it to c. However, I encounter the following problem. When I run:

print 'a\bc'

it prints

a c

while the desired output (which is also what I see in the Windows console) is:

c

Is there a way to move the cursor back in PyCharm's console? or maybe delete the whole line?


Solution

  • It's a known bug: http://youtrack.jetbrains.com/issue/PY-11300

    If you care about this, please get an account on the bug tracker and upload the bug to give it more attention.