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
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/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:590
Method
IsDark
IsDark returns whether the color is dark.
color.go:44
Method
IsDark
IsDark returns whether the color is dark.
color.go:75
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:349
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:86
Function
Println
Println prints above the Program. This output is unmanaged by the program and will persist across renders by the Program. Unlike fmt.Println (but sim
renderer.go:70
Function
Raw
Raw is a command that prints the given string to the terminal without any formatting. This is intended for advanced use cases where you need to query
raw.go:33
Function
ReadClipboard
ReadClipboard produces a command that reads the system clipboard using OSC52. Note that OSC52 is not supported in all terminals.
clipboard.go:42
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:68
Method
ReleaseTerminal
ReleaseTerminal restores the original terminal state and cancels the input reader. You can return control to the Program with RestoreTerminal.
tea.go:1319
Function
RequestBackgroundColor
RequestBackgroundColor is a command that requests the terminal background color.
color.go:13
Function
RequestCapability
RequestCapability is a command that requests the terminal to send its Termcap/Terminfo response for the given capability. Bubble Tea recognizes the f
termcap.go:30
Function
RequestCursorColor
RequestCursorColor is a command that requests the terminal cursor color.
color.go:29
Function
RequestCursorPosition
RequestCursorPosition is a command that requests the cursor position. The cursor position will be sent as a [CursorPositionMsg] message.
cursor.go:26
Function
RequestForegroundColor
RequestForegroundColor is a command that requests the terminal foreground color.
color.go:21
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:20
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
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:54
Method
SetStderr
SetStderr sets stderr on the underlying exec.Cmd to the given io.Writer.
exec.go:94
Method
SetStdin
SetStdin sets stdin on underlying exec.Cmd to the given io.Reader.
exec.go:78
Method
SetStdout
SetStdout sets stdout on underlying exec.Cmd to the given io.Writer.
exec.go:86
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:46
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:39
Method
String
String returns the hex representation of the color.
color.go:70
Method
String
String returns the pasted content as a string.
paste.go:10
Method
String
String returns a string representation of the mouse click message.
mouse.go:86
Method
String
String returns a string representation of the mouse release message.
mouse.go:101
Method
String
String returns a string representation of the mouse wheel message.
mouse.go:116
Method
String
String returns a string representation of the mouse motion message.
mouse.go:131
Method
String
String implements [fmt.Stringer] and is quite useful for matching key events. For details, on what this returns see [Key.String].
key.go:195
Method
String
String implements [fmt.Stringer] and is quite useful for matching key events. For details, on what this returns see [Key.String].
key.go:228
Method
SupportsAllKeysAsEscapeCodes
SupportsAllKeysAsEscapeCodes returns whether the terminal supports reporting all keys as escape codes.
keyboard.go:51
Method
SupportsAlternateKeys
SupportsAlternateKeys returns whether the terminal supports reporting alternate key codes.
keyboard.go:45
Method
SupportsAssociatedText
SupportsAssociatedText returns whether the terminal supports reporting associated text with key events.
keyboard.go:57
Method
SupportsKeyDisambiguation
SupportsKeyDisambiguation returns whether the terminal supports key disambiguation (e.g., distinguishing between different modifier keys).
keyboard.go:33
Function
Suspend
Suspend is a special command that tells the Bubble Tea program to suspend.
tea.go:564
Function
TestBatch
(t *testing.T)
commands_test.go:30
Function
TestClearMsg
(t *testing.T)
screen_test.go:161
Function
TestCursedRenderer_mouseVsFlush
Fixes: https://github.com/charmbracelet/bubbletea/issues/1690
cursed_renderer_test.go:32
Function
TestEvery
(t *testing.T)
commands_test.go:8
Function
TestLogToFile
(t *testing.T)
logging_test.go:10
Function
TestOptions
(t *testing.T)
options_test.go:11
Function
TestSequence
(t *testing.T)
commands_test.go:35
Function
TestTeaBatchMsg
(t *testing.T)
tea_test.go:400
Function
TestTeaContext
(t *testing.T)
tea_test.go:303
Function
TestTeaContextBatchDeadlock
(t *testing.T)
tea_test.go:364
Function
TestTeaContextImplodeDeadlock
(t *testing.T)
tea_test.go:337
Function
TestTeaExec
(t *testing.T)
exec_test.go:60
Function
TestTeaExecWithNilInput
(t *testing.T)
exec_test.go:121
Function
TestTeaGoroutinePanic
(t *testing.T)
tea_test.go:579
Function
TestTeaKill
(t *testing.T)
tea_test.go:270
Function
TestTeaModel
(t *testing.T)
tea_test.go:69
Function
TestTeaNestedSequenceMsg
(t *testing.T)
tea_test.go:489
Function
TestTeaNoRun
(t *testing.T)
tea_test.go:536
Function
TestTeaPanic
(t *testing.T)
tea_test.go:548
Function
TestTeaQuit
(t *testing.T)
tea_test.go:92
Function
TestTeaSend
(t *testing.T)
tea_test.go:514
Function
TestTeaSequenceMsg
(t *testing.T)
tea_test.go:436
Function
TestTeaSequenceMsgWithBatchMsg
(t *testing.T)
tea_test.go:461
Function
TestTeaWaitKill
(t *testing.T)
tea_test.go:171
Function
TestTeaWaitQuit
(t *testing.T)
tea_test.go:117
← previous
next →
301–400 of 659, ranked by callers