示例#1
0
def logo():
    print(
        fg.brightgreen(f"""
  _   _           __        ___    ____     _
 | |_| |__   ___  \ \      / / \  |  _ \ __| | ___ _ __
 | __| '_ \ / _ \  \ \ /\ / / _ \ | |_) / _` |/ _ \ '_  |
 | |_| | | |  __/   \ V  V / ___ \|  _ < (_| |  __/ | | |
  \__|_| |_|\___|    \_/\_/_/   \_\_| \_\__,_|\___|_| |_|"""))
    print("")
    print(
        emoji.emojize(
            "                                      Specter Edition :ghost:"))
    print(
        fg.yellow("                             Powered by NgU technology ₿"))
示例#2
0
文件: test_ansi.py 项目: tehmaze/ansi
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'
示例#3
0
文件: test.py 项目: saviosabino/ansi
 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')
示例#4
0
def yellow(s):
    return (fg.yellow(s))
示例#5
0
def warning(s):
    return (fg.yellow(s))
示例#6
0
文件: test_ansi.py 项目: seveas/ansi
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'