def banner(self, msg, color=None, cows=True):
    '\n        Prints a header-looking line with cowsay or stars with length depending on terminal width (3 minimum)\n        '
    msg = to_text(msg)
    if (self.b_cowsay and cows):
        try:
            self.banner_cowsay(msg)
            return
        except OSError:
            self.warning('somebody cleverly deleted cowsay or something during the PB run.  heh.')
    msg = msg.strip()
    try:
        star_len = (self.columns - get_text_width(msg))
    except EnvironmentError:
        star_len = (self.columns - len(msg))
    if (star_len <= 3):
        star_len = 3
    stars = (u'*' * star_len)
    self.display((u'\n%s %s' % (msg, stars)), color=color)
Prints a header-looking line with cowsay or stars with length depending on terminal width (3 minimum)
def banner(self, msg, color=None, cows=True):
    '\n        \n        '
    msg = to_text(msg)
    if (self.b_cowsay and cows):
        try:
            self.banner_cowsay(msg)
            return
        except OSError:
            self.warning('somebody cleverly deleted cowsay or something during the PB run.  heh.')
    msg = msg.strip()
    try:
        star_len = (self.columns - get_text_width(msg))
    except EnvironmentError:
        star_len = (self.columns - len(msg))
    if (star_len <= 3):
        star_len = 3
    stars = (u'*' * star_len)
    self.display((u'\n%s %s' % (msg, stars)), color=color)