help message command added

This commit is contained in:
ysakamoto
2015-03-06 03:45:26 -06:00
parent a50317b311
commit b5d2852708
4 changed files with 50 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ import six
from .content import SubmissionContent
from .page import BasePage
from .utils import LoadScreen, Color, ESCAPE
from .utils import LoadScreen, Color, ESCAPE, display_message, help_msg
class SubmissionPage(BasePage):
@@ -54,6 +54,9 @@ class SubmissionPage(BasePage):
elif cmd in (ESCAPE, curses.KEY_LEFT, ord('h')):
break
elif cmd == ord('?'):
display_message(self.stdscr, help_msg)
elif cmd == ord('q'):
sys.exit()