feat: wip tui application

This commit is contained in:
l.weber 2025-12-06 11:01:11 +01:00
parent a161b86c9a
commit 5d7e9d79c4
7 changed files with 286 additions and 0 deletions

15
tui/size.go Normal file
View file

@ -0,0 +1,15 @@
package tui
import tea "github.com/charmbracelet/bubbletea"
type Size struct{
Width, Height int
}
func NewSize(width, height int) Size {
return Size { Width: width, Height: height }
}
func NewSizeFromWindow(size tea.WindowSizeMsg) Size {
return Size { Width: size.Width, Height: size.Height }
}