aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub
diff options
context:
space:
mode:
authorTim Deegan <Tim.Deegan@xensource.com>2007-02-01 15:03:37 +0000
committerTim Deegan <Tim.Deegan@xensource.com>2007-02-01 15:03:37 +0000
commit479f9c8a5d0a0d61efed553218febbea3a82162c (patch)
tree73c18c62b743fa97964b824fb6b224a3c203442d /tools/pygrub
parent22a3e99d9709bd5acafab2440e6c6f9240a2313e (diff)
downloadxen-479f9c8a5d0a0d61efed553218febbea3a82162c.tar.gz
xen-479f9c8a5d0a0d61efed553218febbea3a82162c.tar.bz2
xen-479f9c8a5d0a0d61efed553218febbea3a82162c.zip
[PYGRUB] Invoke pygrub with TERM=vt100
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Diffstat (limited to 'tools/pygrub')
-rw-r--r--tools/pygrub/src/pygrub5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub
index cf0efcb185..9b3d15f675 100644
--- a/tools/pygrub/src/pygrub
+++ b/tools/pygrub/src/pygrub
@@ -197,7 +197,10 @@ class Grub:
self.screen = curses.initscr()
self.screen.timeout(1000)
if hasattr(curses, 'use_default_colors'):
- curses.use_default_colors()
+ try:
+ curses.use_default_colors()
+ except:
+ pass # Not important if we can't use colour
enable_cursor(False)
self.entry_win = curses.newwin(10, 74, 2, 1)
self.text_win = curses.newwin(10, 70, 12, 5)