Discover Packages
github.com/mohamedation/gotermfx
termfx
package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Oct 12, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Package termfx provides the animation registry and terminal helpers used by
gotermfx. Animations implement Animation and register themselves via
Register so the CLI can discover and run them.
func GetSize() (cols, rows int )
GetSize returns the current terminal size in columns and rows.
When the size cannot be determined it falls back to 80x24.
IsOnce reports whether ctx was created with WithOnce .
List returns the registered animation names in registration order.
Register adds an animation to the global registry under the given name.
WithOnce returns a child context that signals animations to exit after one cycle.
Animation is the interface every animation must implement.
Run should block until ctx is cancelled or the animation finishes in once mode.
Get returns the animation at index i. Panics if i is out of range.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.