Skip to content

Commit

Permalink
Indicate tunnel status in CLI prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmartin committed May 27, 2014
1 parent 3bec040 commit c106450
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions psiturk/psiturk_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,10 @@ def color_prompt(self): # overloads prompt with network info
prompt += ' mode:' + colorize('sdbx', 'bold')
else:
prompt += ' mode:' + colorize('live', 'bold')
if self.tunnel.is_open:
prompt += ' tunnel:' + colorize('✓', 'green')
else:
prompt += ' tunnel:' + colorize('✗', 'red')
if self.sandbox:
prompt += ' #HITs:' + str(self.sandboxHITs)
else:
Expand Down

0 comments on commit c106450

Please sign in to comment.