Merge branch 'master' into devel

This commit is contained in:
Jakub Sobon 2019-03-07 00:37:21 -05:00
commit b7a6d70ff6
4 changed files with 3 additions and 2 deletions

BIN
doc/images/termdash.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

View File

@ -15,7 +15,7 @@
// Package linestyle defines various line styles. // Package linestyle defines various line styles.
package linestyle package linestyle
// LineStyle defines the supported line styles.Q // LineStyle defines the supported line styles.
type LineStyle int type LineStyle int
// String implements fmt.Stringer() // String implements fmt.Stringer()

View File

@ -15,7 +15,7 @@
// Package mouse defines known mouse buttons. // Package mouse defines known mouse buttons.
package mouse package mouse
// Button represents // Button represents a mouse button.
type Button int type Button int
// String implements fmt.Stringer() // String implements fmt.Stringer()

View File

@ -64,6 +64,7 @@ func RedrawInterval(t time.Duration) Option {
// ErrorHandler is used to provide a function that will be called with all // ErrorHandler is used to provide a function that will be called with all
// errors that occur while the dashboard is running. If not provided, any // errors that occur while the dashboard is running. If not provided, any
// errors panic the application. // errors panic the application.
// The provided function must be thread-safe.
func ErrorHandler(f func(error)) Option { func ErrorHandler(f func(error)) Option {
return option(func(td *termdash) { return option(func(td *termdash) {
td.errorHandler = f td.errorHandler = f