mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Update display_during_execution
This commit is contained in:
parent
0cab23b2ba
commit
3756605a45
1 changed files with 2 additions and 0 deletions
|
@ -126,6 +126,8 @@ def dvi_to_svg(dvi_file, regen_if_exists=False):
|
|||
def display_during_execution(message):
|
||||
# Only show top line
|
||||
to_print = message.split("\n")[0]
|
||||
if len(to_print) > 80:
|
||||
to_print = to_print[:77] + "..."
|
||||
try:
|
||||
print(to_print, end="\r")
|
||||
yield
|
||||
|
|
Loading…
Add table
Reference in a new issue