add tee thing

This commit is contained in:
Christoph J. Scherr 2024-08-01 12:58:16 +02:00
parent 4241cf5260
commit f79b8b5d4d
2 changed files with 21 additions and 0 deletions

1
src/tui/requirements.txt Normal file
View File

@ -0,0 +1 @@
terminaltexteffects==0.11.0

20
src/tui/tee.py Normal file
View File

@ -0,0 +1,20 @@
from terminaltexteffects.effects.effect_burn import Burn
text = """
Beautiful is better than ugly.
Explicit is better than implicit.
Beautiful is better than ugly.
Beautiful is better than ugly.
Beautiful is better than ugly.
Beautiful is better than ugly.
Beautiful is better than ugly.
Explicit is better than implicit.
Explicit is better than implicit.
Explicit is better than implicit.
Explicit is better than implicit.
Explicit is better than implicit.
"""
effect = Burn(text)
with effect.terminal_output() as terminal:
for frame in effect:
terminal.print(frame)