The following forum message was posted by xphysx at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4545106:

I'm using Pydev in Eclipse on Ubuntu Linux.

Say I have a python script as follows:

[code]for i in range(101):
    print(str(i) + "% \r", end="")[/code]
Running this script from terminal gives the anticipated and wanted result, a
print that updates the line with the end result as follows:
[code]100%[/code]
If I run the script in Eclipse/Pydev, the output is instead:
[code]0%
1%
2%
...
100%[/code]
It seems the console handles \r as a complete newline. Does anyone know a way
to fix this behaviour? Thanks in advance!

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to