mirror of
https://github.com/3b1b/manim.git
synced 2026-04-26 03:00:23 -04:00
Update display_during_execution
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user