Initial, working but only with viewport height adjusted a little bit

This commit is contained in:
2026-03-28 16:12:33 +01:00
commit 7d94dee26b
16 changed files with 857 additions and 0 deletions

21
ui/program.go Normal file
View File

@@ -0,0 +1,21 @@
package ui
import (
"os"
"git.pablu.de/pablu/pybug/internal/bridge"
tea "github.com/charmbracelet/bubbletea"
)
func Run(bridge *bridge.Bridge) error {
buf, err := os.ReadFile("test.py")
if err != nil {
return err
}
m := NewModel(bridge, "test.py", string(buf))
p := tea.NewProgram(m, tea.WithAltScreen())
_, err = p.Run()
return err
}