Thanks to Ignacio Vasquez-Abrams for your contribution, it was a great push in the right direction. In the end, I came up with this little code that will help me conquer the world :)
from curses import * setupterm() #cols = tigetnum("cols") #lines = tigetnum("lines") #print str(cols) + "x" + str(lines) place_begin = tparm(tigetstr("cup"), 15, 14) place_end = tparm(tigetstr("cup"), 50, 0) print place_begin + "-- some text --" + place_end
@ TZ.TZIOY, thanks, I think using stdout instead of using print is really a better solution.
source share