diff options
Diffstat (limited to 'pym/portage/output.py')
-rw-r--r-- | pym/portage/output.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py index 3c6533106..4d0ab42ec 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -138,7 +138,7 @@ codes["bg_darkyellow"] = codes["bg_brown"] # Colors from /etc/init.d/functions.sh codes["NORMAL"] = esc_seq + "0m" -codes["NEUTRAL"] = codes["lightgray"] +codes["BLANK"] = codes["lightgray"] codes["GOOD"] = codes["green"] codes["WARN"] = codes["yellow"] codes["BAD"] = codes["red"] @@ -544,6 +544,20 @@ class EOutput(object): sys.stdout.flush() self.__last_e_cmd = "ewarn" + def eblank(self, msg): + """ + Shows a blank line. Consecutive eblank calls are all collapsed + into a single blank line. + """ + if self.__last_e_cmd == "eblank": + return + if not self.quiet: + if self.__last_e_cmd == "ebegin": + sys.stdout.write("\n") + sys.stdout.write(colorize("BLANK", " * ") + "\n") + sys.stdout.flush() + self.__last_e_cmd = "eblank" + def ewend(self, errno, *msg): """ Indicates the completion of a process, optionally displaying a message |