Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Window ¶
func Window(width int, height int, fonts crt.Fonts, model tea.Model, defaultBg color.Color, options ...tea.ProgramOption) (*crt.Window, *tea.Program, error)
Window creates a new crt based bubbletea window with the given width, height, fonts, model and default background color. Additional options can be passed to the bubbletea program.
Types ¶
type Adapter ¶ added in v0.0.3
type Adapter struct {
// contains filtered or unexported fields
}
Adapter represents a bubbletea adapter for the crt package.
func NewAdapter ¶ added in v0.0.3
NewAdapter creates a new bubbletea adapter.
func (*Adapter) HandleKeyPress ¶ added in v0.0.3
func (b *Adapter) HandleKeyPress()
func (*Adapter) HandleMouseButton ¶ added in v0.0.3
func (b *Adapter) HandleMouseButton(button crt.MouseButton)
func (*Adapter) HandleMouseMotion ¶ added in v0.0.3
func (b *Adapter) HandleMouseMotion(motion crt.MouseMotion)
func (*Adapter) HandleMouseWheel ¶ added in v0.0.3
func (b *Adapter) HandleMouseWheel(wheel crt.MouseWheel)
func (*Adapter) HandleWindowSize ¶ added in v0.0.3
func (b *Adapter) HandleWindowSize(size crt.WindowSize)
Click to show internal directories.
Click to hide internal directories.