mirror of https://github.com/mum4k/termdash.git
Merge branch 'master' into devel
This commit is contained in:
commit
b7a6d70ff6
Binary file not shown.
After Width: | Height: | Size: 221 KiB |
|
@ -15,7 +15,7 @@
|
|||
// Package linestyle defines various line styles.
|
||||
package linestyle
|
||||
|
||||
// LineStyle defines the supported line styles.Q
|
||||
// LineStyle defines the supported line styles.
|
||||
type LineStyle int
|
||||
|
||||
// String implements fmt.Stringer()
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
// Package mouse defines known mouse buttons.
|
||||
package mouse
|
||||
|
||||
// Button represents
|
||||
// Button represents a mouse button.
|
||||
type Button int
|
||||
|
||||
// String implements fmt.Stringer()
|
||||
|
|
|
@ -64,6 +64,7 @@ func RedrawInterval(t time.Duration) Option {
|
|||
// 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 panic the application.
|
||||
// The provided function must be thread-safe.
|
||||
func ErrorHandler(f func(error)) Option {
|
||||
return option(func(td *termdash) {
|
||||
td.errorHandler = f
|
||||
|
|
Loading…
Reference in New Issue