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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -