main.go
 1  package main
 2  
 3  import (
 4  	"fmt"
 5  	"os"
 6  
 7  	tea "github.com/charmbracelet/bubbletea"
 8  )
 9  
10  func main() {
11  	// Create the Bubble Tea program
12  	p := tea.NewProgram(
13  		initialModel(),
14  		tea.WithAltScreen(),       // Use alternate screen buffer
15  		tea.WithMouseCellMotion(), // Enable mouse support
16  	)
17  
18  	// Run the program
19  	if _, err := p.Run(); err != nil {
20  		fmt.Printf("Error running TUI: %v\n", err)
21  		os.Exit(1)
22  	}
23  }