MCPcopy Create free account

hub / github.com/charmbracelet/bubbletea / functions

Functions659 in github.com/charmbracelet/bubbletea

MethodInit
()
examples/progress-static/main.go:57
MethodInit
()
examples/eyes/main.go:75
MethodInit
()
examples/list-default/main.go:26
MethodInit
()
examples/realtime/main.go:47
MethodInit
()
examples/textarea/main.go:43
MethodInit
()
examples/space/main.go:29
MethodInit
()
examples/doom-fire/main.go:26
MethodInit
()
examples/prevent-quit/main.go:78
MethodInit
()
examples/send-msg/main.go:55
MethodInit
()
examples/query-term/main.go:32
MethodInit
()
examples/keyboard-enhancements/main.go:25
MethodInit
()
examples/table-resize/main.go:31
MethodInit
()
examples/timer/main.go:30
MethodInit
()
examples/textinput/main.go:42
MethodInit
()
examples/list-simple/main.go:106
MethodInit
()
examples/mouse/main.go:21
MethodInit
()
examples/cellbuffer/main.go:145
MethodInit
()
examples/print-key/main.go:11
MethodInit
()
examples/tabs/main.go:52
MethodInit
()
examples/spinner/main.go:30
MethodInit
()
examples/help/main.go:83
MethodInit
()
examples/vanish/main.go:12
MethodInit
()
examples/focus-blur/main.go:26
MethodInit
()
examples/window-size/main.go:20
MethodInit
()
tutorials/commands/main.go:38
MethodInit
()
tutorials/basics/main.go:28
FunctionInterrupt
Interrupt is a special command that tells the Bubble Tea program to interrupt.
tea.go:590
MethodIsDark
IsDark returns whether the color is dark.
color.go:44
MethodIsDark
IsDark returns whether the color is dark.
color.go:75
MethodKey
Key returns the underlying key event. This is a syntactic sugar for casting the key event to a [Key].
key.go:219
MethodKey
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
MethodKeystroke
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
MethodKeystroke
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
MethodMouse
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
MethodMouse
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
MethodMouse
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
MethodMouse
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
FunctionNewProgressBar
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
FunctionPrintf
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
FunctionPrintln
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
FunctionRaw
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
FunctionReadClipboard
ReadClipboard produces a command that reads the system clipboard using OSC52. Note that OSC52 is not supported in all terminals.
clipboard.go:42
FunctionReadPrimaryClipboard
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
MethodReleaseTerminal
ReleaseTerminal restores the original terminal state and cancels the input reader. You can return control to the Program with RestoreTerminal.
tea.go:1319
FunctionRequestBackgroundColor
RequestBackgroundColor is a command that requests the terminal background color.
color.go:13
FunctionRequestCapability
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
FunctionRequestCursorColor
RequestCursorColor is a command that requests the terminal cursor color.
color.go:29
FunctionRequestCursorPosition
RequestCursorPosition is a command that requests the cursor position. The cursor position will be sent as a [CursorPositionMsg] message.
cursor.go:26
FunctionRequestForegroundColor
RequestForegroundColor is a command that requests the terminal foreground color.
color.go:21
FunctionRequestTerminalVersion
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
FunctionRequestWindowSize
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
FunctionSetPrimaryClipboard
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
MethodSetStderr
SetStderr sets stderr on the underlying exec.Cmd to the given io.Writer.
exec.go:94
MethodSetStdin
SetStdin sets stdin on underlying exec.Cmd to the given io.Reader.
exec.go:78
MethodSetStdout
SetStdout sets stdout on underlying exec.Cmd to the given io.Writer.
exec.go:86
MethodShortHelp
Additional short help entries. This satisfies the help.KeyMap interface and is entirely optional.
examples/list-fancy/delegate.go:60
MethodShortHelp
ShortHelp returns keybindings to be shown in the mini help view. It's part of the key.Map interface.
examples/help/main.go:27
MethodSpacing
()
examples/list-simple/main.go:45
MethodString
String returns the capability content as a string.
termcap.go:46
MethodString
String returns the string representation of the clipboard message.
clipboard.go:20
MethodString
String returns the terminal name as a string.
xterm.go:9
MethodString
String returns the hex representation of the color.
color.go:39
MethodString
String returns the hex representation of the color.
color.go:70
MethodString
String returns the pasted content as a string.
paste.go:10
MethodString
String returns a string representation of the mouse click message.
mouse.go:86
MethodString
String returns a string representation of the mouse release message.
mouse.go:101
MethodString
String returns a string representation of the mouse wheel message.
mouse.go:116
MethodString
String returns a string representation of the mouse motion message.
mouse.go:131
MethodString
String implements [fmt.Stringer] and is quite useful for matching key events. For details, on what this returns see [Key.String].
key.go:195
MethodString
String implements [fmt.Stringer] and is quite useful for matching key events. For details, on what this returns see [Key.String].
key.go:228
MethodSupportsAllKeysAsEscapeCodes
SupportsAllKeysAsEscapeCodes returns whether the terminal supports reporting all keys as escape codes.
keyboard.go:51
MethodSupportsAlternateKeys
SupportsAlternateKeys returns whether the terminal supports reporting alternate key codes.
keyboard.go:45
MethodSupportsAssociatedText
SupportsAssociatedText returns whether the terminal supports reporting associated text with key events.
keyboard.go:57
MethodSupportsKeyDisambiguation
SupportsKeyDisambiguation returns whether the terminal supports key disambiguation (e.g., distinguishing between different modifier keys).
keyboard.go:33
FunctionSuspend
Suspend is a special command that tells the Bubble Tea program to suspend.
tea.go:564
FunctionTestBatch
(t *testing.T)
commands_test.go:30
FunctionTestClearMsg
(t *testing.T)
screen_test.go:161
FunctionTestCursedRenderer_mouseVsFlush
Fixes: https://github.com/charmbracelet/bubbletea/issues/1690
cursed_renderer_test.go:32
FunctionTestEvery
(t *testing.T)
commands_test.go:8
FunctionTestLogToFile
(t *testing.T)
logging_test.go:10
FunctionTestOptions
(t *testing.T)
options_test.go:11
FunctionTestSequence
(t *testing.T)
commands_test.go:35
FunctionTestTeaBatchMsg
(t *testing.T)
tea_test.go:400
FunctionTestTeaContext
(t *testing.T)
tea_test.go:303
FunctionTestTeaContextBatchDeadlock
(t *testing.T)
tea_test.go:364
FunctionTestTeaContextImplodeDeadlock
(t *testing.T)
tea_test.go:337
FunctionTestTeaExec
(t *testing.T)
exec_test.go:60
FunctionTestTeaExecWithNilInput
(t *testing.T)
exec_test.go:121
FunctionTestTeaGoroutinePanic
(t *testing.T)
tea_test.go:579
FunctionTestTeaKill
(t *testing.T)
tea_test.go:270
FunctionTestTeaModel
(t *testing.T)
tea_test.go:69
FunctionTestTeaNestedSequenceMsg
(t *testing.T)
tea_test.go:489
FunctionTestTeaNoRun
(t *testing.T)
tea_test.go:536
FunctionTestTeaPanic
(t *testing.T)
tea_test.go:548
FunctionTestTeaQuit
(t *testing.T)
tea_test.go:92
FunctionTestTeaSend
(t *testing.T)
tea_test.go:514
FunctionTestTeaSequenceMsg
(t *testing.T)
tea_test.go:436
FunctionTestTeaSequenceMsgWithBatchMsg
(t *testing.T)
tea_test.go:461
FunctionTestTeaWaitKill
(t *testing.T)
tea_test.go:171
FunctionTestTeaWaitQuit
(t *testing.T)
tea_test.go:117
← previousnext →301–400 of 659, ranked by callers