Skip to content

Commit

Permalink
Merge pull request #173 from waveform80/fix-monitor-exit
Browse files Browse the repository at this point in the history
Run stty sane on shutdown
  • Loading branch information
waveform80 committed Jun 28, 2019
2 parents 24303ee + bbe7603 commit 81e4285
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions piwheels/monitor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
or terminate the master itself.
"""

import os
import sys
from datetime import datetime, timedelta, timezone
from time import sleep
Expand Down Expand Up @@ -115,6 +116,7 @@ def __call__(self, args=None):
self.loop.run()
finally:
ctx.close()
os.system('stty sane')

def build_ui(self):
"""
Expand Down

0 comments on commit 81e4285

Please sign in to comment.