FOR ♥MATHIEUI♥ : Show the cursor in the input window

This commit is contained in:
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 2010-06-13 00:25:01 +00:00
parent 9a88c02142
commit 78ff11afb1

View file

@ -252,9 +252,6 @@ class TextWin(Win):
""" """
Write the date on the yth line of the window Write the date on the yth line of the window
""" """
# debug(str(self.win.getmaxyx()))
# debug(str(y))
# debug('___________________')
self.win.addnstr('['+time.strftime("%H"), 3) self.win.addnstr('['+time.strftime("%H"), 3)
self.win.attron(curses.color_pair(9)) self.win.attron(curses.color_pair(9))
self.win.addnstr(':', 1) self.win.addnstr(':', 1)
@ -274,6 +271,7 @@ class Input(Win):
""" """
def __init__(self, height, width, y, x, stdscr, visible): def __init__(self, height, width, y, x, stdscr, visible):
Win.__init__(self, height, width, y, x, stdscr) Win.__init__(self, height, width, y, x, stdscr)
curses.curs_set(1)
self.win.leaveok(0) self.win.leaveok(0)
self.visible = visible self.visible = visible
self.history = [] self.history = []