The easiest way is to use the effbot.org Console module :
import Console c = Console.getconsole() c.text(0, -1, 'And this is the string at the bottom of the console')
By specifying -1 for the second (linear) argument, you are accessing the last line of the console.
Since the Console module only works on Windows, to make this work on UNIX terminals as well, you should take a look at the wcurses library , which provides a partial curses implementation that will run on Windows. You will manage it in the same way as the stdlib curses module ; use the first on Windows and the second on UNIX.
source share