//
pkg.gl
Category
github.com/mum4k/termdash
private
button
package
0.20.0
Repository:
https://github.com/mum4k/termdash.git
Documentation:
pkg.go.dev
Versions
1
Dependencies
3
Dependents
3
Files
78 SLOC
#
Functions
NewFSM
NewFSM creates a new FSM instance that tracks the state of the specified mouse button through button events that fall within the provided area.
#
Constants
Down
Down is a state where the mouse button is pressed down and held.
Up
Up is the default idle state of the mouse button.
#
Structs
FSM
FSM implements a finite-state machine that tracks mouse clicks within an area.
#
Type aliases
State
State represents the state of the mouse button.