python stdout carriage return -
I am running a loop on a given file..and writes it on that output for the purpose of monitoring The file on which the file is currently being processed.
sys.stdout.write ("\ rProcessing ...." + j) sys.stdout.flush () While the J file name is
the script's output ...
processing .... /etc/sysconfig/rhn/sources0.examplewn -slepcsbals-ipv6f The problem is that the carriage return "\ r" does not already clarify the file name and Number previous file name.
Any ideas how I can fix it ... and do it more
< P> Remember the written string, and write the blank space. Sys.stdout.write ('\ r' + (* '* * len (old_string)) sys.stdout.write (' \ rProcessing ... '+ new_string)
Comments
Post a Comment