#! /usr/bin/python # To change this template, choose Tools | Templates # and open the template in the editor. __author__="bjschuma" __date__ ="$Dec 19, 2009 11:57:19 PM$" import settings # Add string to line y def insert(string): stdscr = settings.get("stdscr") y = settings.get("cliney") y+=1 settings.replace("cliney", y) stdscr.addstr(y, 0, string) # Replace the string on the current line def disp(string): stdscr = settings.get("stdscr") stdscr.addstr(settings.get("cliney"), 0, string) #insert(string, settings.get("cliney"))