This repository has been archived on 2024-11-05. You can view files and clone it, but cannot push or open issues/pull-requests.
lamb/greeting.py

57 lines
934 B
Python
Raw Normal View History

from prompt_toolkit.styles import Style
from prompt_toolkit.formatted_text import HTML, to_formatted_text
2022-10-21 17:55:31 -07:00
from prompt_toolkit import print_formatted_text as printf
# | _.._ _.|_
# |_(_|| | ||_)
# 1.1.0
#
# __ __
# ,-` `` `,
# (` \ )
# (` \ `)
# (, / \ _)
# (` / \ )
# `'._.--._.'
#
# A λ calculus engine
style = Style.from_dict({
# Heading
"_h": "#FFFFFF bold",
# Version
"_v": "#B4EC85 bold",
# Lambda
"_l": "#FF6600 bold",
# Subtitle
2022-10-21 17:55:31 -07:00
"_s": "#B4EC85 bold",
# :help message
"_p": "#AAAAAA"
})
html = HTML(f"""
<_h> | _.._ _.|_
|_(_|| | ||_)</_h>
<_v>1.1.0</_v>
__ __
,-` `` `,
(` <_l>\\</_l> )
(` <_l>\\</_l> `)
(, <_l>/ \\</_l> _)
(` <_l>/ \\</_l> )
`'._.--._.'
<_s> A λ calculus engine</_s>
2022-10-21 17:55:31 -07:00
<_p> Type :help for help</_p>
"""[1:-1])
def show():
2022-10-21 17:55:31 -07:00
printf(html, style = style)