26 lines
450 B
Python
26 lines
450 B
Python
|
|
import curses
|
|
|
|
|
|
|
|
class InfoPad:
|
|
|
|
|
|
|
|
def __init__(self, size=(1,1), *args):
|
|
self.pad = curses.newpad(size[1], size[0])
|
|
self.size = size
|
|
|
|
def showString(self, string):
|
|
self.pad.clear()
|
|
self.pad.addstr(0,0,string)
|
|
|
|
def update(self, screen, x, y, xmax, ymax):
|
|
self.pad.noutrefresh(
|
|
0,
|
|
0,
|
|
y,
|
|
x,
|
|
ymax-1,
|
|
xmax-1)
|