forked from Mirrors/bubbletea
adjust bubble tea mod
This commit is contained in:
parent
da49e8f86a
commit
14c9ee8b4d
4
go.mod
4
go.mod
|
@ -1,6 +1,6 @@
|
|||
module github.com/charmbracelet/bubbletea
|
||||
module git.preston-baxter.com/Preston_PLB/bubbletea
|
||||
|
||||
go 1.18
|
||||
go 1.21
|
||||
|
||||
require (
|
||||
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81
|
||||
|
|
|
@ -223,3 +223,9 @@ func WithFPS(fps int) ProgramOption {
|
|||
p.fps = fps
|
||||
}
|
||||
}
|
||||
|
||||
func WithRenderer(renderer Renderer) ProgramOption {
|
||||
return func(p *Program) {
|
||||
p.renderer = renderer
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
package tea
|
||||
|
||||
type Renderer interface {
|
||||
renderer
|
||||
}
|
||||
|
||||
// renderer is the interface for Bubble Tea renderers.
|
||||
type renderer interface {
|
||||
// Start the renderer.
|
||||
|
|
Loading…
Reference in New Issue