Skip to contentSkip to conversation

fix ncurses ui

PATCH New Andy Voltz 1 participant 2 messages Dec 19, 2014

lore
Share & tools
lore

Andy Voltz

author
#0 lore raw

I decided to give the ncurses ui a try, but found it was broken.

The following patch updates the ncurses module main function to accept the configParams arg passed from bitbake.

author
#1 lore raw

PATCH 1/1 update ncurses ui to accept configParams

---
 lib/bb/ui/ncurses.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/bb/ui/ncurses.py +2 -2
index b6c20ec..9589a77 100644
@@ -361,13 +361,13 @@ class NCursesUI:
                 shutdown = shutdown + 1
                 pass
 
-def main(server, eventHandler):
+def main(server, eventHandler, params):
     if not os.isatty(sys.stdout.fileno()):
         print("FATAL: Unable to run 'ncurses' UI without a TTY.")
         return
     ui = NCursesUI()
     try:
-        curses.wrapper(ui.main, server, eventHandler)
+        curses.wrapper(ui.main, server, eventHandler, params)
     except:
         import traceback
         traceback.print_exc()
Signature · 1 line
2.1.3