Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
Merge pull request #267 from jesseward/x84-242-default-response
Browse files Browse the repository at this point in the history
Requested in issue #242. Provides a default to the quick login prompt in...
  • Loading branch information
jquast committed Mar 19, 2015
2 parents 8d383e9 + d75f260 commit fff7bf4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x84/default/top.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def display_prompt(term):
).rstrip())
echo(term.move_up() + term.move_up() + term.move_x(0))
echo(term.center(u'quick login {0} ?\b\b'
.format(_show_opt(term, u'yn'))
.format(_show_opt(term, u'[yN]'))
).rstrip())


Expand Down Expand Up @@ -233,7 +233,9 @@ def do_intro_art(term, session):
if inp is None or inp.lower() == u'y':
# escape/yes: quick login
return True
elif inp.lower() == u'n':
# issue #242 : set 'N' as default, by adding a check for an empty
# unicode string.
elif inp.lower() in (u'n', u'\r', u'\n', u''):
break

if len(inp) == 1:
Expand Down

0 comments on commit fff7bf4

Please sign in to comment.