feat: wip tui application
This commit is contained in:
parent
a161b86c9a
commit
5d7e9d79c4
7 changed files with 286 additions and 0 deletions
15
tui/size.go
Normal file
15
tui/size.go
Normal 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 }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue