Terminal screen coordinates in python -
i'm newbie in using curses lib. want make python program (running in dos terminal) can return cursor start of current line allowing subsequent output overwrite written there. tried call shellscript python it, beleive may exist better way doing it.
if want rewrite current line, print return char "\r". example, prints "abcdef":
# print 'abcdef' backup start of line, print 'abc' # (then print normal cr/lf 'print' does) print "abcdef\rabc" (also helpful know can suppress cr/lf ending print trailing comma...) .
Comments
Post a Comment