From: "Ralph Sennhauser" <sera@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/java-config:master commit in: src/java_config_2/
Date: Sat, 28 Dec 2013 13:15:42 +0000 (UTC) [thread overview]
Message-ID: <1388161744.cc5d3204d40388fb20d63917ef3e7281365ebd27.sera@gentoo> (raw)
commit: cc5d3204d40388fb20d63917ef3e7281365ebd27
Author: Ralph Sennhauser <sera <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 27 16:29:04 2013 +0000
Commit: Ralph Sennhauser <sera <AT> gentoo <DOT> org>
CommitDate: Fri Dec 27 16:29:04 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/java-config.git;a=commit;h=cc5d3204
OutputFormatter: drop unused xtitle code
---
src/java_config_2/OutputFormatter.py | 29 -----------------------------
1 file changed, 29 deletions(-)
diff --git a/src/java_config_2/OutputFormatter.py b/src/java_config_2/OutputFormatter.py
index d554fd0..c385da2 100644
--- a/src/java_config_2/OutputFormatter.py
+++ b/src/java_config_2/OutputFormatter.py
@@ -29,40 +29,14 @@ class OutputFormatter:
def __init__(self, displayColor=True, displayTitle=True, autoIndent=True):
self.colorOutput = displayColor
- self.consoleTitle = displayTitle
self.autoIndent = autoIndent
- if displayTitle and "TERM" in os.environ:
- if os.environ["TERM"] not in [ "xterm", "Eterm", "aterm", "rxvt" ]:
- self.consoleTitle = False
-
def __call__(self, displayColor=True, displayTitle=True, autoIndent=True):
return self
def setColorOutputStatus(self, status):
self.colorOutput = status
- def setDisplayTitleStatus(self, status):
- if status and "TERM" in os.environ:
- if os.environ["TERM"] in [ "xterm", "Eterm", "aterm", "rxvt" ]:
- self.consoleTitle = True
- else:
- self.consoleTitle = False
- else:
- self.consoleTitle = False
-
- def isColorOutputEnabled(self):
- return self.colorOutput
-
- def isTitleDisplayEnabled(self):
- return self.consoleTitle
-
-
- def __setTitle(self, title):
- if self.consoleTitle:
- sys.stderr.write("\x1b]1;\x07\x1b]2;" + str(title) + "\x07")
- sys.stderr.flush()
-
def __indent(self, prefix, message):
if self.autoIndent is True:
num = len(prefix)
@@ -116,9 +90,6 @@ class OutputFormatter:
message = "%H%C" + self.__indent("!!! ALERT: ", message) + "%$"
sys.stderr.write(self.__parseColor(message) + '\n')
- def setTitle(self, message):
- self.__setTitle(self.__parseColor(message))
-
OutputFormatter = OutputFormatter()
# vim:set expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap:
next reply other threads:[~2013-12-28 13:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-28 13:15 Ralph Sennhauser [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-07-16 20:50 [gentoo-commits] proj/java-config:master commit in: src/java_config_2/ Patrice Clement
2017-09-08 21:22 Patrice Clement
2013-12-28 13:15 Ralph Sennhauser
2013-12-28 13:15 Ralph Sennhauser
2013-12-28 13:15 Ralph Sennhauser
2013-12-28 13:15 Ralph Sennhauser
2013-12-27 11:28 Ralph Sennhauser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1388161744.cc5d3204d40388fb20d63917ef3e7281365ebd27.sera@gentoo \
--to=sera@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox