thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Backspace character doesn't work correctly when written to sys.stdout. #388

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Please see the attached file.  

What is the expected output? What do you see instead?

It should print 'foo', wait for one second, then delete 'foo' and print 'bar' 
in its place.  Instead I get foobar.

It works fine if run at the Python command line.

What version of the product are you using? On what operating system?

PyScripter 2.0
Python 2.6.4
Windows XP SP3

Original issue reported on code.google.com by josh.ay...@gmail.com on 15 Aug 2010 at 9:30

Attachments:

GoogleCodeExporter commented 9 years ago
I accidentally attached the incorrect file.  Uncomment the first two code 
blocks to demonstrate the problem described above.

The third section shows what I think is another bug - the '\r' carriage return 
character behaves like a '\n' newline.  Instead of moving to the beginning of 
the line, such that new text overwrites the existing text, it moves to the next 
line.

Original comment by josh.ay...@gmail.com on 15 Aug 2010 at 10:32

GoogleCodeExporter commented 9 years ago
It is difficult to emulate perfectly the CRT in a text editor.  IDLE and I 
guess other Python IDEs have the same limitation.

Original comment by pyscripter on 19 Aug 2010 at 10:14

GoogleCodeExporter commented 9 years ago
Issue 541 has been merged into this issue.

Original comment by pyscripter on 27 Jul 2011 at 8:28