summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/ncurses.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-12-06 13:03:19 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-12-06 13:03:19 +0000
commit9f5dbcce6fd49383821d5f36fb88d35ddabc613f (patch)
treebe1c7ff28be3d2441a234712ea1f1e7623c55b58 /lib/bb/ui/ncurses.py
parenta946f9b948adb5046de65ee98c5cdebd803888d5 (diff)
downloadopenembedded-core-contrib-9f5dbcce6fd49383821d5f36fb88d35ddabc613f.tar.gz
Update the UIs against the core changes and allow dynamic loading of the UI so UIs become truly plugable.
Diffstat (limited to 'lib/bb/ui/ncurses.py')
-rw-r--r--lib/bb/ui/ncurses.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/ui/ncurses.py b/lib/bb/ui/ncurses.py
index 1476baa61f..3cac264648 100644
--- a/lib/bb/ui/ncurses.py
+++ b/lib/bb/ui/ncurses.py
@@ -245,8 +245,6 @@ class NCursesUI:
continue
helper.eventHandler(event)
#mw.appendText("%s\n" % event[0])
- if event[0].startswith('bb.event.Pkg'):
- mw.appendText("NOTE: %s\n" % event[1]['_message'])
if event[0].startswith('bb.build.Task'):
mw.appendText("NOTE: %s\n" % event[1]['_message'])
if event[0].startswith('bb.msg.MsgDebug'):
@@ -324,6 +322,9 @@ class NCursesUI:
pass
def init(server, eventHandler):
+ 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)