0

I am trying to print backspaces to continually overwrite text but the backspace is printing a value and not overwriting.

Idle with Python 3.6.4 with IDLEX extension installed.

print('foo\bar') fooar

It should be printing foar instead of fooar.

Barmar
  • 741,623
  • 53
  • 500
  • 612
DoctorWhom
  • 219
  • 1
  • 2
  • 7
  • Weird, it is not displaying what it shows in the console. Console shows foo*ar where * similar to a long vertical rectangle. Equivalent to [] but completely closed. It did not show up for SO description. – DoctorWhom Aug 15 '19 at 19:52
  • 1
    May be IDLE specific, works for me in the command line. – Michael Bianconi Aug 15 '19 at 19:53
  • 1
    IDLE may not use real console/terminal but own function to simulate console and it may not have all functionalities – furas Aug 15 '19 at 19:55
  • 1
    This is entirely terminal dependent. Python is merely outputting (the byte encoding of) a 6-characters string. – chepner Aug 15 '19 at 19:56
  • This is a duplicate of multiple python-idle backspace questions. I picked the one that seems most useful, and added comments there. – Terry Jan Reedy Aug 16 '19 at 21:34

0 Answers0