add tee thing
This commit is contained in:
parent
4241cf5260
commit
f79b8b5d4d
2 changed files with 21 additions and 0 deletions
1
src/tui/requirements.txt
Normal file
1
src/tui/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
terminaltexteffects==0.11.0
|
20
src/tui/tee.py
Normal file
20
src/tui/tee.py
Normal 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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue