shellnotes/util/listnotes/d/display.py

11 lines
316 B
Python
Raw Normal View History

2021-02-18 08:13:24 +01:00
def underlined(text, symbol = '-'):
print()
2021-07-03 09:38:49 +02:00
print(text, flush=True)
print(symbol * len(text), flush=True)
2021-02-18 08:13:24 +01:00
def bordered(text, symbol = '*'):
print()
2021-07-03 09:38:49 +02:00
print(symbol * (len(text) + 4), flush=True)
print(symbol, text, symbol, flush=True)
print(symbol * (len(text) + 4), flush=True)
2021-02-18 08:13:24 +01:00
print()