Reset terminal properly, remove unused function. Reported by Doruk Fişek
This commit is contained in:
@@ -120,7 +120,7 @@ class Install(AtomicOperation):
|
||||
txn.abort()
|
||||
raise e
|
||||
|
||||
ctx.ui.status()
|
||||
ctx.ui.close()
|
||||
if self.upgrade:
|
||||
event = pisi.ui.upgraded
|
||||
else:
|
||||
@@ -436,7 +436,7 @@ class Remove(AtomicOperation):
|
||||
raise e
|
||||
|
||||
self.remove_pisi_files()
|
||||
ctx.ui.status()
|
||||
ctx.ui.close()
|
||||
ctx.ui.notify(pisi.ui.removed, package = self.package, files = self.files)
|
||||
|
||||
def check_dependencies(self):
|
||||
|
||||
+1
-6
@@ -184,9 +184,6 @@ def run_logged(cmd):
|
||||
# Terminal functions #
|
||||
######################
|
||||
|
||||
def has_xterm():
|
||||
return os.environ.has_key("TERM") and sys.stderr.isatty()
|
||||
|
||||
def xterm_title(message):
|
||||
"""sets message as a console window's title"""
|
||||
if os.environ.has_key("TERM") and sys.stderr.isatty():
|
||||
@@ -200,10 +197,8 @@ def xterm_title(message):
|
||||
def xterm_title_reset():
|
||||
"""resets console window's title"""
|
||||
if os.environ.has_key("TERM"):
|
||||
terminalType = os.environ["TERM"]
|
||||
xterm_title(os.environ["TERM"])
|
||||
xterm_title("")
|
||||
|
||||
|
||||
#############################
|
||||
# Path Processing Functions #
|
||||
#############################
|
||||
|
||||
Reference in New Issue
Block a user