Skip to content

Commit

Permalink
turn off echoing of input characters
Browse files Browse the repository at this point in the history
  • Loading branch information
iiSeymour committed Feb 10, 2015
1 parent 6d0707b commit d5409cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uwsgitop
Expand Up @@ -31,12 +31,14 @@ def human_size(n):
def game_over():
global need_reset
if need_reset:
curses.echo()
curses.endwin()

def exc_hook(type, value, tb):
global need_reset, screen
need_reset = False
if screen:
curses.echo()
curses.endwin()
traceback.print_exception(type, value, tb)

Expand All @@ -62,6 +64,7 @@ except:
pass

screen = curses.initscr()
curses.noecho()
curses.start_color()

try:
Expand Down

0 comments on commit d5409cc

Please sign in to comment.