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
Method
Init
()
examples/stopwatch/main.go:28
Method
Init
()
examples/split-editors/main.go:119
Method
Init
()
examples/isbn-form/main.go:155
Method
Init
()
examples/composable-views/main.go:76
Method
Init
()
examples/dynamic-textarea/main.go:38
Method
Init
()
examples/http/main.go:34
Method
Init
()
examples/result/main.go:21
Method
Init
()
examples/glamour/main.go:108
Method
Init
()
examples/canvas/main.go:18
Method
Init
()
examples/pipe/main.go:75
Method
Init
()
examples/splash/main.go:40
Method
Init
()
examples/set-window-title/main.go:17
Method
Init
Init implements tea.Model.
examples/colorprofile/main.go:20
Method
Init
()
examples/fullscreen/main.go:25
Method
Init
()
examples/textinputs/main.go:73
Method
Init
Init implements tea.Model.
examples/capability/main.go:20
Method
Init
()
examples/sequence/main.go:15
Method
Init
()
examples/set-terminal-color/main.go:51
Method
Init
()
examples/chat/main.go:69
Method
Init
()
examples/clickable/main.go:72
Method
Init
()
examples/file-picker/main.go:29
Method
Init
Init optionally returns an initial command we should run. In this case we want to start the timer.
examples/simple/main.go:38
Method
Init
()
examples/altscreen-toggle/main.go:22
Method
Init
()
examples/suspend/main.go:16
Method
Init
()
examples/package-manager/main.go:47
Method
Init
()
examples/exec/main.go:27
Method
Init
()
examples/cursor-style/main.go:15
Method
Init
()
examples/table/main.go:20
Method
Init
()
examples/debounce/main.go:29
Method
Init
()
examples/tui-daemon-combo/main.go:77
Method
Init
()
examples/views/main.go:78
Method
Init
()
examples/autocomplete/main.go:118
Method
Init
()
examples/pager/main.go:37
Method
Init
()
examples/progress-bar/main.go:18
Method
Init
()
examples/progress-static/main.go:57
Method
Init
()
examples/eyes/main.go:75
Method
Init
()
examples/list-default/main.go:26
Method
Init
()
examples/realtime/main.go:47
Method
Init
()
examples/textarea/main.go:43
Method
Init
()
examples/space/main.go:29
Method
Init
()
examples/doom-fire/main.go:26
Method
Init
()
examples/prevent-quit/main.go:78
Method
Init
()
examples/send-msg/main.go:55
Method
Init
()
examples/query-term/main.go:32
Method
Init
()
examples/keyboard-enhancements/main.go:25
Method
Init
()
examples/table-resize/main.go:31
Method
Init
()
examples/timer/main.go:30
Method
Init
()
examples/textinput/main.go:42
Method
Init
()
examples/list-simple/main.go:106
Method
Init
()
examples/mouse/main.go:21
Method
Init
()
examples/cellbuffer/main.go:145
Method
Init
()
examples/print-key/main.go:11
Method
Init
()
examples/tabs/main.go:52
Method
Init
()
examples/spinner/main.go:30
Method
Init
()
examples/program-status/main.go:39
Method
Init
()
examples/help/main.go:83
Method
Init
()
examples/vanish/main.go:12
Method
Init
()
examples/focus-blur/main.go:26
Method
Init
()
examples/window-size/main.go:20
Method
Init
()
tutorials/commands/main.go:38
Method
Init
()
tutorials/basics/main.go:28
Function
Interrupt
Interrupt is a special command that tells the Bubble Tea program to interrupt.
tea.go:620
Method
IsDark
IsDark returns whether the color is dark.
color.go:47
Method
IsDark
IsDark returns whether the color is dark.
color.go:79
Method
Key
Key returns the underlying key event. This is a syntactic sugar for casting the key event to a [Key].
key.go:219
Method
Key
Key returns the underlying key event. This is a convenience method and syntactic sugar to satisfy the [KeyMsg] interface, and cast the key event to [K
key.go:253
Method
Keystroke
Keystroke returns the keystroke representation of the [Key]. While less type safe than looking at the individual fields, it will usually be more conve
key.go:213
Method
Keystroke
Keystroke returns the keystroke representation of the [Key]. While less type safe than looking at the individual fields, it will usually be more conve
key.go:246
Method
Mouse
Mouse returns the underlying mouse event. This is a convenience method and syntactic sugar to satisfy the [MouseMsg] interface, and cast the mouse eve
mouse.go:93
Method
Mouse
Mouse returns the underlying mouse event. This is a convenience method and syntactic sugar to satisfy the [MouseMsg] interface, and cast the mouse eve
mouse.go:108
Method
Mouse
Mouse returns the underlying mouse event. This is a convenience method and syntactic sugar to satisfy the [MouseMsg] interface, and cast the mouse eve
mouse.go:123
Method
Mouse
Mouse returns the underlying mouse event. This is a convenience method and syntactic sugar to satisfy the [MouseMsg] interface, and cast the mouse eve
mouse.go:142
Function
NewProgressBar
NewProgressBar returns a new progress bar with the given state and value. The value is ignored if the state is [ProgressBarNone] or [ProgressBarIndete
tea.go:371
Function
Printf
Printf prints above the Program. It takes a format template followed by values similar to fmt.Printf. This output is unmanaged by the program and will
renderer.go:95
Function
ReadClipboard
ReadClipboard produces a command that reads the system clipboard using OSC52. Note that OSC52 is not supported in all terminals. Use [WithInput] to en
clipboard.go:43
Function
ReadPrimaryClipboard
ReadPrimaryClipboard produces a command that reads the primary clipboard using OSC52. Primary clipboard selection is a feature present in X11 and Wayl
clipboard.go:70
Function
RequestBackgroundColor
RequestBackgroundColor is a command that requests the terminal background color. Use [WithInput] to enable input, since the reply cannot be read other
color.go:14
Function
RequestCursorColor
RequestCursorColor is a command that requests the terminal cursor color. Use [WithInput] to enable input, since the reply cannot be read otherwise.
color.go:32
Function
RequestCursorPosition
RequestCursorPosition is a command that requests the cursor position. The cursor position will be sent as a [CursorPositionMsg] message. Use [WithInpu
cursor.go:27
Function
RequestForegroundColor
RequestForegroundColor is a command that requests the terminal foreground color. Use [WithInput] to enable input, since the reply cannot be read other
color.go:23
Function
RequestProgramStatusSupport
RequestProgramStatusSupport is a command that asks the terminal whether it supports the Program Status Protocol (OSC 7501). A supporting terminal repl
programstatus.go:53
Function
RequestTerminalVersion
RequestTerminalVersion is a command that queries the terminal for its version using XTVERSION. Note that some terminals may not support this command.
xterm.go:21
Function
RequestWindowSize
RequestWindowSize is a command that queries the terminal for its current size. It delivers the results to Update via a [WindowSizeMsg]. Keep in mind t
commands.go:173
Method
Run
()
renderer_park_test.go:200
Function
SetPrimaryClipboard
SetPrimaryClipboard produces a command that sets the primary clipboard using OSC52. Primary clipboard selection is a feature present in X11 and Waylan
clipboard.go:55
Method
SetStderr
SetStderr sets stderr on the underlying exec.Cmd to the given io.Writer.
exec.go:94
Method
SetStderr
(io.Writer)
renderer_park_test.go:203
Method
SetStdin
SetStdin sets stdin on underlying exec.Cmd to the given io.Reader.
exec.go:78
Method
SetStdin
(io.Reader)
renderer_park_test.go:201
Method
SetStdout
SetStdout sets stdout on underlying exec.Cmd to the given io.Writer.
exec.go:86
Method
SetStdout
(io.Writer)
renderer_park_test.go:202
Method
ShortHelp
Additional short help entries. This satisfies the help.KeyMap interface and is entirely optional.
examples/list-fancy/delegate.go:60
Method
ShortHelp
ShortHelp returns keybindings to be shown in the mini help view. It's part of the key.Map interface.
examples/help/main.go:27
Method
Spacing
()
examples/list-simple/main.go:45
Method
String
String returns the capability content as a string.
termcap.go:47
Method
String
String returns the string representation of the clipboard message.
clipboard.go:20
Method
String
String returns the terminal name as a string.
xterm.go:9
Method
String
String returns the hex representation of the color.
color.go:42
Method
String
String returns the hex representation of the color.
color.go:74
Method
String
String returns the pasted content as a string.
paste.go:10
← previous
next →
301–400 of 758, ranked by callers