Skip to content
Snippets Groups Projects
Commit 97f20e19 authored by Simon Rose's avatar Simon Rose
Browse files

E3-1465: Fix stty sane

Note that this is the same as the original bash implementation, and
fixes the terminal even on segfaults.
parent a66a5bc3
No related branches found
No related tags found
1 merge request!163E3-1465: Fix stty sane
Pipeline #177110 failed
......@@ -12,7 +12,7 @@ from pathlib import Path
@atexit.register
def graceful_shutdown() -> None:
print("\nExiting e3 IOC shell")
os.system("[[ $- == *i* ]] && stty sane")
os.system("[[ -t 1 ]] && stty sane")
class TemporaryStartupScript:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment