Added help text for the pause command

master
Michael Dvorkin 11 years ago
parent 5e764402b9
commit 57fdbbecab
  1. 8
      cmd/mop.go
  2. 2
      screen.go

@ -16,10 +16,12 @@ NO WARRANTIES OF ANY KIND WHATSOEVER. SEE THE LICENSE FILE FOR DETAILS.
<u>Command</u> <u>Description </u> <u>Command</u> <u>Description </u>
+ Add stocks to the list. + Add stocks to the list.
- Remove stocks from the list. - Remove stocks from the list.
o Change column sort order.
g Group stocks by advancing/declining issues.
? Display this help screen. ? Display this help screen.
esc Quit mop. g Group stocks by advancing/declining issues.
o Change column sort order.
p Pause market data and stock updates.
q Quit mop.
esc Ditto.
Enter comma-delimited list of stock tickers when prompted. Enter comma-delimited list of stock tickers when prompted.

@ -50,6 +50,8 @@ func (screen *Screen) Resize() *Screen {
return screen return screen
} }
// Pause is a toggle function that either creates a timestamp of the pause
// request or resets it to nil.
func (screen *Screen) Pause(pause bool) *Screen { func (screen *Screen) Pause(pause bool) *Screen {
if pause { if pause {
screen.pausedAt = new(time.Time) screen.pausedAt = new(time.Time)

Loading…
Cancel
Save