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()
|
txn.abort()
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
ctx.ui.status()
|
ctx.ui.close()
|
||||||
if self.upgrade:
|
if self.upgrade:
|
||||||
event = pisi.ui.upgraded
|
event = pisi.ui.upgraded
|
||||||
else:
|
else:
|
||||||
@@ -436,7 +436,7 @@ class Remove(AtomicOperation):
|
|||||||
raise e
|
raise e
|
||||||
|
|
||||||
self.remove_pisi_files()
|
self.remove_pisi_files()
|
||||||
ctx.ui.status()
|
ctx.ui.close()
|
||||||
ctx.ui.notify(pisi.ui.removed, package = self.package, files = self.files)
|
ctx.ui.notify(pisi.ui.removed, package = self.package, files = self.files)
|
||||||
|
|
||||||
def check_dependencies(self):
|
def check_dependencies(self):
|
||||||
|
|||||||
+1
-6
@@ -184,9 +184,6 @@ def run_logged(cmd):
|
|||||||
# Terminal functions #
|
# Terminal functions #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
def has_xterm():
|
|
||||||
return os.environ.has_key("TERM") and sys.stderr.isatty()
|
|
||||||
|
|
||||||
def xterm_title(message):
|
def xterm_title(message):
|
||||||
"""sets message as a console window's title"""
|
"""sets message as a console window's title"""
|
||||||
if os.environ.has_key("TERM") and sys.stderr.isatty():
|
if os.environ.has_key("TERM") and sys.stderr.isatty():
|
||||||
@@ -200,10 +197,8 @@ def xterm_title(message):
|
|||||||
def xterm_title_reset():
|
def xterm_title_reset():
|
||||||
"""resets console window's title"""
|
"""resets console window's title"""
|
||||||
if os.environ.has_key("TERM"):
|
if os.environ.has_key("TERM"):
|
||||||
terminalType = os.environ["TERM"]
|
xterm_title("")
|
||||||
xterm_title(os.environ["TERM"])
|
|
||||||
|
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
# Path Processing Functions #
|
# Path Processing Functions #
|
||||||
#############################
|
#############################
|
||||||
|
|||||||
Reference in New Issue
Block a user