mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[PYGRUB] Invoke pygrub with TERM=vt100
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
This commit is contained in:
1 parent
22a3e99d97
commit
479f9c8a5d
2 files changed
+7
-2
No files matched your search
@@ -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)
|
||||
|
||||
@@ -97,7 +97,9 @@ def bootloader(blexec, disk, dom, quiet = False, blargs = '', kernel = '',
|
||||
|
||||
try:
|
||||
log.debug("Launching bootloader as %s." % str(args))
|
||||
os.execvp(args[0], args)
|
||||
env = os.environ.copy()
|
||||
env['TERM'] = 'vt100'
|
||||
os.execvpe(args[0], args, env)
|
||||
except OSError, e:
|
||||
print e
|
||||
pass
|
||||
|
||||