summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2008-07-24 16:26:02 +0200
committerMartin Sivak <msivak@redhat.com>2008-07-24 16:35:56 +0200
commit9d120444843ec87c84cad8b20a12e0421639b279 (patch)
tree46a3bc4c0bc8251a8a6234d306a69ae0a639baa5
parent4ecd2b468bcb30addc153492069cdd9da24f7625 (diff)
downloadanaconda-9d120444843ec87c84cad8b20a12e0421639b279.tar.gz
anaconda-9d120444843ec87c84cad8b20a12e0421639b279.tar.xz
anaconda-9d120444843ec87c84cad8b20a12e0421639b279.zip
Suspend the curses interface before calling scripts and resume afterwards (#435314)
-rw-r--r--cmdline.py6
-rwxr-xr-xgui.py6
-rw-r--r--kickstart.py4
-rw-r--r--text.py6
4 files changed, 22 insertions, 0 deletions
diff --git a/cmdline.py b/cmdline.py
index de14ada32..0aa980285 100644
--- a/cmdline.py
+++ b/cmdline.py
@@ -72,6 +72,12 @@ class InstallInterface:
def shutdown(self):
pass
+ def suspend(self):
+ pass
+
+ def resume(self):
+ pass
+
def progressWindow(self, title, text, total, updpct = 0.05, pulse = False):
return ProgressWindow(title, text, total, updpct, pulse)
diff --git a/gui.py b/gui.py
index 456d427ad..40af16435 100755
--- a/gui.py
+++ b/gui.py
@@ -1124,6 +1124,12 @@ class InstallInterface:
def shutdown (self):
pass
+ def suspend(self):
+ pass
+
+ def resume(self):
+ pass
+
def enableNetwork(self, anaconda):
from netconfig_dialog import NetworkConfigurator
net = NetworkConfigurator(anaconda.id.network)
diff --git a/kickstart.py b/kickstart.py
index d1e989ce6..3a21eeb82 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -74,9 +74,13 @@ class AnacondaKSScript(Script):
else:
messages = "/dev/tty3"
+ if intf:
+ intf.suspend()
rc = iutil.execWithRedirect(self.interp, ["/tmp/%s" % os.path.basename(path)],
stdin = messages, stdout = messages, stderr = messages,
root = scriptRoot)
+ if intf:
+ intf.resume()
# Always log an error. Only fail if we have a handle on the
# windowing system and the kickstart file included --erroronfail.
diff --git a/text.py b/text.py
index a87ed5e29..ec00e0b00 100644
--- a/text.py
+++ b/text.py
@@ -535,6 +535,12 @@ class InstallInterface:
self.screen.finish()
self.screen = None
+ def suspend(self):
+ self.screen.suspend()
+
+ def resume(self):
+ self.screen.resume()
+
def __init__(self):
signal.signal(signal.SIGINT, signal.SIG_IGN)
signal.signal(signal.SIGTSTP, signal.SIG_IGN)