Beispiel #1
0
def logo():
    print(
        fg.brightgreen(f"""
  _   _           __        ___    ____     _
 | |_| |__   ___  \ \      / / \  |  _ \ __| | ___ _ __
 | __| '_ \ / _ \  \ \ /\ / / _ \ | |_) / _` |/ _ \ '_  |
 | |_| | | |  __/   \ V  V / ___ \|  _ < (_| |  __/ | | |
  \__|_| |_|\___|    \_/\_/_/   \_\_| \_\__,_|\___|_| |_|"""))
    print("")
    print(
        emoji.emojize(
            "                                      Specter Edition :ghost:"))
    print(
        fg.yellow("                             Powered by NgU technology ₿"))
Beispiel #2
0
def test_sugar():
    from ansi.colour import fg, bg
    assert bg.red(fg.yellow('Hello world!')) == \
        '\x1b[41m\x1b[33mHello world!\x1b[0m\x1b[0m'
Beispiel #3
0
 def test_sugar(self):
     from ansi.colour import fg, bg
     self.assertEqual(
         bg.red(fg.yellow('Hello world!')),
         '\x1b[41m\x1b[1;33mHello world!\x1b[0m\x1b[0m')
Beispiel #4
0
def yellow(s):
    return (fg.yellow(s))
Beispiel #5
0
def warning(s):
    return (fg.yellow(s))
Beispiel #6
0
def test_sugar():
    from ansi.colour import fg, bg
    assert bg.red(fg.yellow('Hello world!')) == \
        '\x1b[41m\x1b[33mHello world!\x1b[0m\x1b[0m'