Terminal based dashboard.
go.mod
to 1.21.go mod tidy
.gauge
widget now supports drawing of a vertical threshold bar.TextInput
widget now supports an OnChange handler that allows user code
to be notified when the content of the text input changes.go.mod
to 1.20.go mod tidy
.Sourcegraph
badge from the main page.gofmt
from Golang v1.20.The pull request for this release contains some commits that belong to release v0.16.0 due to an incorrect merge into master at that release (a squash merge). None of these commits contain any effective changes.
go mod tidy
.The widgetapi.Widget.Keyboard
and widgetapi.Widget.Mouse
methods now
accepts a second argument which provides widgets with additional metadata.
All widgets implemented outside of the termdash
repository will need to be
updated similarly to the Barchart
example below. Change the original method
signatures:
func (*BarChart) Keyboard(k *terminalapi.Keyboard) error { ... }
func (*BarChart) Mouse(m *terminalapi.Mouse) error { ... }
By adding the new *widgetapi.EventMeta
argument as follows:
func (*BarChart) Keyboard(k *terminalapi.Keyboard, meta *widgetapi.EventMeta) error { ... }
func (*BarChart) Mouse(m *terminalapi.Mouse, meta *widgetapi.EventMeta) error { ... }
termdash
no longer crashes when tcell
is used and the terminal window
downsizes while content is being drawn.formdemo
that demonstrates a text input form with keyboard
navigation.container
now allows users to configure keyboard keys that move focus to
the next or the previous container.container
as focused using the new container.Focused
option.button
widgetbutton
widget allows users to specify multiple trigger keys.button
widget now supports different keys for the global and focused
scope.button
widget can now be drawn without the shadow or the press
animation.button
widget can now be drawn without horizontal padding around its
text.button
widget now allows specifying cell options for each cell of the
displayed text. Separate cell options can be specified for each of button's
main states (up, focused and up, down).button
widget allows specifying separate fill color values for each of
its main states (up, focused and up, down).button
widget now has a method SetCallback
that allows updating the
callback function on an existing button
instance.textinput
widgettextinput
widget can now be configured to request keyboard events
exclusively when focused.textinput
widget can now be initialized with a default text in the
input box.Text
widget now allows user to specify custom scroll marker runes.tcell
dependency was upgraded to v2.0.0.tcell
. Defined two non-standard colors ColorMagenta
and
ColorCyan
to make this change backward compatible for users that use
termbox-go
.tcell
terminal implementation the default in examples, demos and
documentation.termdashdemo
appeared to be
jumping.Fixed
tcell
unit test can now pass in headless mode (when TERM="") which
happens under bazel.