From 57fdbbecab38d3ddc288d5e732e7fdf415c4a23c Mon Sep 17 00:00:00 2001 From: Michael Dvorkin Date: Sun, 6 Oct 2013 18:25:45 -0700 Subject: [PATCH] Added help text for the pause command --- cmd/mop.go | 8 +++++--- screen.go | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cmd/mop.go b/cmd/mop.go index b7d2bdb..2d04db5 100644 --- a/cmd/mop.go +++ b/cmd/mop.go @@ -16,10 +16,12 @@ NO WARRANTIES OF ANY KIND WHATSOEVER. SEE THE LICENSE FILE FOR DETAILS. Command Description + Add stocks to the list. - Remove stocks from the list. - o Change column sort order. - g Group stocks by advancing/declining issues. ? 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. diff --git a/screen.go b/screen.go index 685cfb9..bac95ea 100644 --- a/screen.go +++ b/screen.go @@ -50,6 +50,8 @@ func (screen *Screen) Resize() *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 { if pause { screen.pausedAt = new(time.Time)