ui/Curses.py removed extra characters

These characters could be removed.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-30 15:50:01 +02:00
parent ccbe42fb64
commit a69ef4325a

View File

@ -144,7 +144,7 @@ class CursesAccountFrame:
except curses.error as e: # Occurs when the terminal is very small except curses.error as e: # Occurs when the terminal is very small
pass pass
self.ui.exec_locked(addstr); self.ui.exec_locked(addstr)
self.location = len(accstr) self.location = len(accstr)
@ -352,7 +352,7 @@ class Blinkenlights(UIBase, CursesUtil):
super(Blinkenlights, self).__init__(*args, **kwargs) super(Blinkenlights, self).__init__(*args, **kwargs)
CursesUtil.__init__(self) CursesUtil.__init__(self)
################################################## UTILS # UTILS
def setup_consolehandler(self): def setup_consolehandler(self):
"""Backend specific console handler. """Backend specific console handler.
@ -572,7 +572,7 @@ class Blinkenlights(UIBase, CursesUtil):
try: try:
# s.gettf().setcolor('white') # s.gettf().setcolor('white')
self.warn(" *** Input Required") self.warn(" *** Input Required")
self.warn(" *** Please enter password for user '%s': " % \ self.warn(" *** Please enter password for user '%s': " %
username) username)
self.logwin.refresh() self.logwin.refresh()
password = self.logwin.getstr() password = self.logwin.getstr()
@ -659,8 +659,8 @@ class Blinkenlights(UIBase, CursesUtil):
return self.accframes[acc_name] return self.accframes[acc_name]
def terminate(self, *args, **kwargs): def terminate(self, *args, **kwargs):
curses.nocbreak(); curses.nocbreak()
self.stdscr.keypad(0); self.stdscr.keypad(0)
curses.echo() curses.echo()
curses.endwin() curses.endwin()
# need to remove the Curses console handler now and replace with # need to remove the Curses console handler now and replace with