Add simple commands

This commit is contained in:
Zachary Yedidia
2016-03-29 20:44:33 -04:00
parent 70afd3cd90
commit 6f73172865
4 changed files with 51 additions and 35 deletions

View File

@@ -146,7 +146,10 @@ func main() {
os.Exit(0)
}
case tcell.KeyCtrlE:
SetOption(view)
input, canceled := messenger.Prompt("> ")
if !canceled {
HandleCommand(input, view)
}
case tcell.KeyCtrlH:
DisplayHelp()
// Make sure to resize the view if the user resized the terminal while looking at the help text