Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/charmbracelet/bubbletea
/ functions
Functions
758 in github.com/charmbracelet/bubbletea
⨍
Functions
758
◇
Types & classes
222
↓ 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
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
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
↓ 1 callers
Method
onMouse
onMouse handles a mouse event.
renderer.go:65
↓ 1 callers
Function
openEditor
()
examples/exec/main.go:14
↓ 1 callers
Function
progressbar
(percent float64)
examples/views/main.go:233
↓ 1 callers
Function
randomEmoji
()
examples/tui-daemon-combo/main.go:136
↓ 1 callers
Function
randomFood
()
examples/send-msg/main.go:126
↓ 1 callers
Method
readLoop
()
tty.go:97
↓ 1 callers
Method
ready
()
examples/cellbuffer/main.go:114
↓ 1 callers
Method
removeDialog
(index int)
examples/clickable/main.go:274
↓ 1 callers
Method
reset
reset resets the renderer's state to its initial state.
renderer.go:34
↓ 1 callers
Method
reset
()
examples/list-fancy/randomitems.go:17
↓ 1 callers
Method
resetKeyboardEnhancements
resetKeyboardEnhancements writes the sequences that reset keyboard enhancement protocols when switching between the main and alt screens. modifyOtherK
cursed_renderer.go:74
↓ 1 callers
Method
resetSpinner
()
examples/composable-views/main.go:151
↓ 1 callers
Method
restoreInput
restoreInput restores the tty input to its original state.
tty.go:42
↓ 1 callers
Function
reverse
Reverse a slice, returning a new slice.
examples/canvas/main.go:81
↓ 1 callers
Method
set
(x, y int)
examples/cellbuffer/main.go:88
↓ 1 callers
Method
setLogger
setLogger sets the logger for the renderer.
cursed_renderer.go:55
↓ 1 callers
Method
setNoInput
setNoInput disables keyboard enhancement requests. When the program runs without input, the terminal's response to a keyboard enhancement query would
cursed_renderer.go:64
↓ 1 callers
Method
setOptimizations
setOptimizations sets the cursor movement optimizations.
cursed_renderer.go:85
↓ 1 callers
Method
setSyncdUpdates
setSyncdUpdates sets whether to use synchronized updates.
renderer.go:40
↓ 1 callers
Method
setupColors
()
examples/space/main.go:68
↓ 1 callers
Function
shouldQuerySynchronizedOutput
shouldQuerySynchronizedOutput determines whether the terminal should be queried for various capabilities. This function checks for terminals that are
tea.go:1020
↓ 1 callers
Method
sizeInputs
()
examples/split-editors/main.go:176
↓ 1 callers
Method
spreadFire
()
examples/doom-fire/main.go:83
↓ 1 callers
Method
spreadPixel
(idx int)
examples/doom-fire/main.go:91
↓ 1 callers
Method
statusView
()
examples/dynamic-textarea/main.go:61
↓ 1 callers
Method
suspend
()
tty.go:13
↓ 1 callers
Function
suspendProcess
Send SIGTSTP to the entire process group.
tty_unix.go:40
↓ 1 callers
Function
tabBorderWithBottom
(left, middle, right string)
examples/tabs/main.go:74
↓ 1 callers
Function
testTeaWithFilter
(t *testing.T, preventCount uint32)
tea_test.go:286
↓ 1 callers
Function
testViewOptsCmds
(opts ...testViewOpts)
screen_test.go:21
↓ 1 callers
Function
updateChoices
Sub-update functions Update loop for the first view where you're choosing a task.
examples/views/main.go:118
↓ 1 callers
Function
updateChosen
Update loop for the second view after a choice has been made
examples/views/main.go:150
↓ 1 callers
Method
updateInputs
(msg tea.Msg)
examples/textinputs/main.go:143
↓ 1 callers
Method
updateListProperties
()
examples/list-fancy/main.go:99
↓ 1 callers
Method
updatePromptView
(msg tea.Msg)
examples/prevent-quit/main.go:120
↓ 1 callers
Method
updateStyles
(isDark bool)
examples/list-simple/main.go:98
↓ 1 callers
Method
updateTextView
(msg tea.Msg)
examples/prevent-quit/main.go:90
↓ 1 callers
Method
view
()
examples/clickable/main.go:319
↓ 1 callers
Function
viewEquals
(a, b *View)
cursed_renderer.go:931
↓ 1 callers
Method
waitDone
waitDone waits for Run to return.
renderer_park_test.go:184
↓ 1 callers
Method
width
()
examples/cellbuffer/main.go:102
↓ 1 callers
Function
wrapExecCommand
wrapExecCommand wraps an exec.Cmd so that it satisfies the ExecCommand interface so it can be used with Exec.
exec.go:69
Function
BenchmarkTeaRun
(b *testing.B)
tea_test.go:810
Function
ClearScreen
ClearScreen is a special command that tells the program to clear the screen before the next update. This can be used to move the cursor to the top lef
screen.go:18
Method
Clipboard
Clipboard returns the clipboard selection type. This will be one of the following values: - c: System clipboard. - p: Primary clipboard (X11/Wayland
clipboard.go:15
Method
Description
()
examples/list-fancy/main.go:41
Method
Description
()
examples/list-default/main.go:19
Method
Error
For messages that contain errors it's often handy to also implement the error interface on the message.
tutorials/commands/main.go:36
Method
FilterValue
()
examples/list-fancy/main.go:42
Method
FilterValue
()
examples/list-default/main.go:20
Method
FilterValue
()
examples/list-simple/main.go:38
Method
FullHelp
Additional full help entries. This satisfies the help.KeyMap interface and is entirely optional.
examples/list-fancy/delegate.go:69
Method
FullHelp
()
examples/autocomplete/main.go:83
Method
FullHelp
FullHelp returns keybindings for the expanded help view. It's part of the key.Map interface.
examples/help/main.go:33
Method
Init
()
tty_linux_test.go:18
Method
Init
()
cursed_renderer_test.go:162
Method
Init
()
exec_test.go:21
Method
Init
()
exec_test.go:28
Method
Init
()
exec_test.go:163
Method
Init
()
quit_lifecycle_test.go:16
Method
Init
()
tty_test.go:13
Method
Init
()
tea_test.go:38
Method
Init
Init returns no command on purpose: the program exits from Update once it has seen a WindowSizeMsg, so the quit is ordered after the observation rathe
tea_test.go:653
Method
Init
()
tea_test.go:782
Method
Init
()
tea_test.go:839
Method
Init
()
tea_test.go:908
Method
Init
()
renderer_park_test.go:76
Method
Init
()
examples/progress-animated/main.go:45
Method
Init
()
examples/list-fancy/main.go:93
Method
Init
()
examples/progress-download/tui.go:35
Method
Init
()
examples/paginator/main.go:62
Method
Init
()
examples/spinners/main.go:46
← previous
next →
201–300 of 758, ranked by callers