Skip to content

Instantly share code, notes, and snippets.

@bashbunni
bashbunni / main.go
Last active August 25, 2022 20:42
Exec example but using WithAltScreen() prints output to outside of the altscreen
package main
import (
"fmt"
"os"
"os/exec"
tea "github.com/charmbracelet/bubbletea"
)
@bashbunni
bashbunni / main.go
Created July 20, 2022 21:19
Gradiant Background Text
package main
import (
"fmt"
"image/color"
"github.com/charmbracelet/lipgloss"
"github.com/lucasb-eyer/go-colorful"
"github.com/muesli/gamut"
)
@bashbunni
bashbunni / main.go
Last active July 20, 2022 19:16
tea.Println Example
package main
import (
"log"
tea "github.com/charmbracelet/bubbletea"
)
type model struct {
p *tea.Program