diff options
author | Robert Bradford <rob@openedhand.com> | 2008-10-17 09:46:59 +0000 |
---|---|---|
committer | Robert Bradford <rob@openedhand.com> | 2008-10-17 09:46:59 +0000 |
commit | bd63867cbe48eab91523731def4cec80187b5c0f (patch) | |
tree | adf7665910884f47a227f03db5f1577844574c09 /bitbake-dev/lib | |
parent | 39ad2b3120e50e8c88d03fcd323f2369ffbfe850 (diff) | |
download | poky-bd63867cbe48eab91523731def4cec80187b5c0f.tar.gz |
bitbake-dev: Move the ncurses TTY check into the UI plugin itself.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5529 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake-dev/lib')
-rw-r--r-- | bitbake-dev/lib/bb/ui/ncurses.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake-dev/lib/bb/ui/ncurses.py b/bitbake-dev/lib/bb/ui/ncurses.py index 1476baa61f..866792b14f 100644 --- a/bitbake-dev/lib/bb/ui/ncurses.py +++ b/bitbake-dev/lib/bb/ui/ncurses.py | |||
@@ -324,6 +324,9 @@ class NCursesUI: | |||
324 | pass | 324 | pass |
325 | 325 | ||
326 | def init(server, eventHandler): | 326 | def init(server, eventHandler): |
327 | if not os.isatty(sys.stdout.fileno()): | ||
328 | print "FATAL: Unable to run 'ncurses' UI without a TTY." | ||
329 | return | ||
327 | ui = NCursesUI() | 330 | ui = NCursesUI() |
328 | try: | 331 | try: |
329 | curses.wrapper(ui.main, server, eventHandler) | 332 | curses.wrapper(ui.main, server, eventHandler) |