Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/charmbracelet/bubbletea
/ functions
Functions
659 in github.com/charmbracelet/bubbletea
⨍
Functions
659
◇
Types & classes
203
↓ 1 callers
Function
Every
Every is a command that ticks in sync with the system clock. So, if you wanted to tick with the system clock every second, minute or hour you could us
commands.go:102
↓ 1 callers
Function
Exec
Exec is used to perform arbitrary I/O in a blocking fashion, effectively pausing the Program while execution is running and resuming it when execution
exec.go:22
↓ 1 callers
Function
LogToFile
LogToFile sets up default logging to log to a file. This is helpful as we can't print to the terminal since our TUI is occupying it. If the file doesn
logging.go:23
↓ 1 callers
Function
LogToFileWith
LogToFileWith does allows to call LogToFile with a custom LogOptionsSetter.
logging.go:35
↓ 1 callers
Function
NewCursor
NewCursor returns a new cursor with the default settings and the given position.
tea.go:374
↓ 1 callers
Method
Next
()
examples/composable-views/main.go:143
↓ 1 callers
Function
OpenTTY
OpenTTY opens the running terminal's TTY for reading and writing.
tty.go:130
↓ 1 callers
Function
SetClipboard
SetClipboard produces a command that sets the system clipboard using OSC52. Note that OSC52 is not supported in all terminals.
clipboard.go:30
↓ 1 callers
Method
SetPrefix
(string)
logging.go:31
↓ 1 callers
Method
SetStderr
(io.Writer)
exec.go:64
↓ 1 callers
Method
SetStdin
(io.Reader)
exec.go:62
↓ 1 callers
Method
SetStdout
(io.Writer)
exec.go:63
↓ 1 callers
Method
ShortHelp
()
examples/autocomplete/main.go:74
↓ 1 callers
Function
SleepPrintln
print string after stopping for a certain period of time
examples/sequence/main.go:46
↓ 1 callers
Method
Start
()
examples/progress-download/main.go:26
↓ 1 callers
Method
String
String return a human-readable value for the given [ProgressBarState].
tea.go:321
↓ 1 callers
Function
Tick
Tick produces a command at an interval independent of the system clock at the given duration. That is, the timer begins precisely when invoked, and ru
commands.go:154
↓ 1 callers
Function
WithFilter
WithFilter supplies an event filter that will be invoked before Bubble Tea processes a tea.Msg. The event filter can return any tea.Msg which will the
options.go:133
↓ 1 callers
Function
WithoutCatchPanics
WithoutCatchPanics disables the panic catching that Bubble Tea does by default. If panic catching is disabled the terminal will be in a fairly unusabl
options.go:76
↓ 1 callers
Function
WithoutRenderer
WithoutRenderer disables the renderer. When this is set output and log statements will be plainly sent to stdout (or another output if one is set) wit
options.go:98
↓ 1 callers
Function
WithoutSignalHandler
WithoutSignalHandler disables the signal handler that Bubble Tea sets up for Programs. This is useful if you want to handle signals yourself.
options.go:66
↓ 1 callers
Method
add
Adds a channel to the list of handlers. We wait for all handlers to terminate gracefully on shutdown.
tea.go:402
↓ 1 callers
Method
buttonView
()
examples/clickable/main.go:298
↓ 1 callers
Function
capitalize
(s string)
examples/clickable/words.go:61
↓ 1 callers
Function
checkbox
(label string, checked bool)
examples/views/main.go:226
↓ 1 callers
Function
choicesView
Sub-views The first view, where you're choosing a task
examples/views/main.go:182
↓ 1 callers
Function
chosenView
The second view, after a task has been chosen
examples/views/main.go:204
↓ 1 callers
Function
clamp
(value, min, max float64)
examples/space/main.go:88
↓ 1 callers
Function
clearErrorAfter
(t time.Duration)
examples/file-picker/main.go:23
↓ 1 callers
Method
clearScreen
clearScreen clears the screen.
renderer.go:50
↓ 1 callers
Method
close
close closes the renderer and flushes any remaining data.
renderer.go:23
↓ 1 callers
Function
colorFloatToHex
Helper function for converting colors to hex. Assumes a value between 0 and 1.
examples/views/main.go:269
↓ 1 callers
Function
colorToHex
Convert a colorful.Color to a hexadecimal format.
examples/views/main.go:263
↓ 1 callers
Method
currentFocusedModel
()
examples/composable-views/main.go:136
↓ 1 callers
Function
cycle
(stack []string)
examples/clickable/words.go:75
↓ 1 callers
Method
describeCursor
()
examples/cursor-style/main.go:52
↓ 1 callers
Function
drawEllipse
(canvas [][]string, x0, y0, rx, ry int)
examples/eyes/main.go:179
↓ 1 callers
Function
drawEllipse
(cb *cellbuffer, xc, yc, rx, ry float64)
examples/cellbuffer/main.go:24
↓ 1 callers
Function
enterAltScreen
(s *cursedRenderer, write bool)
cursed_renderer.go:653
↓ 1 callers
Method
eventLoop
eventLoop is the central message loop. It receives and handles the default Bubble Tea messages, update the model and triggers redraws.
tea.go:743
↓ 1 callers
Method
exec
exec runs an ExecCommand and delivers the results to the program as a Msg.
exec.go:102
↓ 1 callers
Function
exitAltScreen
(s *cursedRenderer, write bool)
cursed_renderer.go:663
↓ 1 callers
Function
finalPause
()
examples/progress-download/tui.go:23
↓ 1 callers
Method
footerView
()
examples/autocomplete/main.go:182
↓ 1 callers
Method
footerView
()
examples/textinput/main.go:80
↓ 1 callers
Function
getGradientColor
(position float64)
examples/splash/main.go:120
↓ 1 callers
Function
getPackages
()
examples/package-manager/packages.go:40
↓ 1 callers
Function
getResponse
(url string)
examples/progress-download/main.go:42
↓ 1 callers
Method
gradient
()
examples/splash/main.go:69
↓ 1 callers
Method
handleCommands
handleCommands runs commands in a goroutine and sends the result to the program's message channel.
tea.go:700
↓ 1 callers
Method
handleResize
handleResize handles terminal resize events.
tea.go:685
↓ 1 callers
Method
handleSignals
()
tea.go:643
↓ 1 callers
Method
headerView
()
examples/textarea/main.go:82
↓ 1 callers
Method
headerView
()
examples/textinput/main.go:79
↓ 1 callers
Method
height
()
examples/cellbuffer/main.go:106
↓ 1 callers
Method
helpView
()
examples/stopwatch/main.go:44
↓ 1 callers
Method
helpView
()
examples/glamour/main.go:132
↓ 1 callers
Method
helpView
()
examples/timer/main.go:67
↓ 1 callers
Method
init
(w, h int)
examples/cellbuffer/main.go:79
↓ 1 callers
Method
initInput
()
tty_unix.go:15
↓ 1 callers
Function
initialModel
()
examples/list-fancy/main.go:178
↓ 1 callers
Function
initialModel
()
examples/isbn-form/main.go:130
↓ 1 callers
Function
initialModel
()
examples/dynamic-textarea/main.go:23
↓ 1 callers
Function
initialModel
()
examples/textinputs/main.go:36
↓ 1 callers
Function
initialModel
()
examples/chat/main.go:33
↓ 1 callers
Function
initialModel
()
examples/autocomplete/main.go:87
↓ 1 callers
Function
initialModel
()
examples/eyes/main.go:53
↓ 1 callers
Function
initialModel
()
examples/textarea/main.go:30
↓ 1 callers
Function
initialModel
()
examples/doom-fire/main.go:118
↓ 1 callers
Function
initialModel
()
examples/prevent-quit/main.go:57
↓ 1 callers
Function
initialModel
()
examples/keyboard-enhancements/main.go:97
↓ 1 callers
Function
initialModel
()
examples/textinput/main.go:31
↓ 1 callers
Function
initialModel
()
examples/list-simple/main.go:72
↓ 1 callers
Function
initialModel
()
examples/spinner/main.go:23
↓ 1 callers
Function
initialModel
()
tutorials/basics/main.go:16
↓ 1 callers
Method
insertAbove
insertAbove inserts unmanaged lines above the renderer.
renderer.go:35
↓ 1 callers
Function
interpolateColors
(color1, color2 color.Color, t float64)
examples/splash/main.go:149
↓ 1 callers
Function
listenForActivity
Simulate a process that sends events at an irregular interval in real time. In this case, we'll send events on the channel at a random interval betwee
examples/realtime/main.go:24
↓ 1 callers
Method
listenForResize
listenForResize sends messages (or errors) when the terminal resizes. Argument output should be the file descriptor for the terminal; usually os.Stdou
signals_unix.go:15
↓ 1 callers
Function
makeRampStyles
Utils Generate a blend of colors.
examples/views/main.go:251
↓ 1 callers
Function
newCard
(str string)
examples/canvas/main.go:68
↓ 1 callers
Function
newCursedRenderer
(w io.Writer, env []string, width, height int)
cursed_renderer.go:40
↓ 1 callers
Function
newDelegateKeyMap
()
examples/list-fancy/delegate.go:78
↓ 1 callers
Method
newDialog
(x, y int)
examples/clickable/main.go:261
↓ 1 callers
Function
newExample
(isDark bool)
examples/glamour/main.go:59
↓ 1 callers
Function
newItemDelegate
(keys *delegateKeyMap, styles *styles)
examples/list-fancy/delegate.go:9
↓ 1 callers
Function
newListKeyMap
()
examples/list-fancy/main.go:53
↓ 1 callers
Function
newModel
()
examples/paginator/main.go:35
↓ 1 callers
Function
newModel
()
examples/split-editors/main.go:84
↓ 1 callers
Function
newModel
(timeout time.Duration)
examples/composable-views/main.go:69
↓ 1 callers
Function
newModel
(initialValue string)
examples/pipe/main.go:58
↓ 1 callers
Function
newModel
()
examples/package-manager/main.go:32
↓ 1 callers
Function
newModel
()
examples/tui-daemon-combo/main.go:65
↓ 1 callers
Function
newModel
()
examples/send-msg/main.go:45
↓ 1 callers
Function
newModel
()
examples/query-term/main.go:18
↓ 1 callers
Function
newModel
()
examples/help/main.go:75
↓ 1 callers
Function
newStyles
(bgIsDark bool)
examples/paginator/main.go:22
↓ 1 callers
Function
newStyles
(darkBG bool)
examples/list-simple/main.go:25
↓ 1 callers
Function
newStyles
(bgIsDark bool)
examples/tabs/main.go:20
↓ 1 callers
Function
nextRandomWord
()
examples/clickable/words.go:41
← previous
next →
101–200 of 659, ranked by callers