-
Notifications
You must be signed in to change notification settings - Fork 0
/
TUIe1.go
56 lines (48 loc) · 1.22 KB
/
TUIe1.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package main
import (
"fmt"
. "github.com/achannarasappa/term-grid"
"github.com/charmbracelet/lipgloss"
"github.com/etensor/gotutui/countdown"
"github.com/etensor/gotutui/paginator"
"github.com/etensor/gotutui/selector"
"github.com/etensor/gotutui/selectors"
)
var style = lipgloss.NewStyle().
Bold(true).
Foreground(lipgloss.Color("#101D07")).
Background(lipgloss.Color("#ADC0D8")).
PaddingTop(2).
PaddingLeft(4)
var stilacho = lipgloss.NewStyle().
Italic(true).
Foreground(lipgloss.Color("#FAFAFA")).
Background(lipgloss.Color("#101D07")).
PaddingTop(2).
PaddingLeft(4)
func main() {
out := Render(
Grid{
GutterVertical: 2,
GutterHorizontal: 3,
Rows: []Row{
{
Width: 50,
Cells: []Cell{
{Width: 20, Text: stilacho.Render("Cuenti"), Overflow: WrapWord, Align: Right},
{Width: 20, Text: style.Render("Chimba"), Overflow: WrapWord},
},
},
},
})
fmt.Print(out + "\n\n")
number_chosen := selector.Select_number()
viz_mode := selector.Select_cmode()
paginator.Pager(viz_mode, number_chosen)
//fmt.Println(stilacho.Render("Cuenti"))
fmt.Println(style.Render("Hello there."))
countdown.Main_TUI()
countdown.Alive()
selectors.Select_items()
countdown.Countdown()
}