Skip to content

Commit 05e692a

Browse files
committed
fix: Explicitly stop EnlightenStatusPrinter manager
Enlighten registers logic to (at least partially) reset the terminal using the `atexit` library and clean up, but we should explicitly close the Enlighten manager when we cleanup/exit the status printer to make sure that the terminal is fully restored to its normal working state. Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
1 parent bb3acf7 commit 05e692a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/dvsim/utils/status_printer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def exit(self) -> None:
202202
self.status_header.close()
203203
for target in self.status_target:
204204
self.status_target[target].close()
205+
self.manager.stop()
205206

206207

207208
def get_status_printer(interactive: bool) -> StatusPrinter:

0 commit comments

Comments
 (0)