MCPcopy Create free account

hub / github.com/charmbracelet/bubbletea / functions

Functions758 in github.com/charmbracelet/bubbletea

MethodInit
()
examples/stopwatch/main.go:28
MethodInit
()
examples/split-editors/main.go:119
MethodInit
()
examples/isbn-form/main.go:155
MethodInit
()
examples/composable-views/main.go:76
MethodInit
()
examples/dynamic-textarea/main.go:38
MethodInit
()
examples/http/main.go:34
MethodInit
()
examples/result/main.go:21
MethodInit
()
examples/glamour/main.go:108
MethodInit
()
examples/canvas/main.go:18
MethodInit
()
examples/pipe/main.go:75
MethodInit
()
examples/splash/main.go:40
MethodInit
()
examples/set-window-title/main.go:17
MethodInit
Init implements tea.Model.
examples/colorprofile/main.go:20
MethodInit
()
examples/fullscreen/main.go:25
MethodInit
()
examples/textinputs/main.go:73
MethodInit
Init implements tea.Model.
examples/capability/main.go:20
MethodInit
()
examples/sequence/main.go:15
MethodInit
()
examples/set-terminal-color/main.go:51
MethodInit
()
examples/chat/main.go:69
MethodInit
()
examples/clickable/main.go:72
MethodInit
()
examples/file-picker/main.go:29
MethodInit
Init optionally returns an initial command we should run. In this case we want to start the timer.
examples/simple/main.go:38
MethodInit
()
examples/altscreen-toggle/main.go:22
MethodInit
()
examples/suspend/main.go:16
MethodInit
()
examples/package-manager/main.go:47
MethodInit
()
examples/exec/main.go:27
MethodInit
()
examples/cursor-style/main.go:15
MethodInit
()
examples/table/main.go:20
MethodInit
()
examples/debounce/main.go:29
MethodInit
()
examples/tui-daemon-combo/main.go:77
MethodInit
()
examples/views/main.go:78
MethodInit
()
examples/autocomplete/main.go:118
MethodInit
()
examples/pager/main.go:37
MethodInit
()
examples/progress-bar/main.go:18
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/program-status/main.go:39
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:620
MethodIsDark
IsDark returns whether the color is dark.
color.go:47
MethodIsDark
IsDark returns whether the color is dark.
color.go:79
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:371
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:95
FunctionReadClipboard
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
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:70
FunctionRequestBackgroundColor
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
FunctionRequestCursorColor
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
FunctionRequestCursorPosition
RequestCursorPosition is a command that requests the cursor position. The cursor position will be sent as a [CursorPositionMsg] message. Use [WithInpu
cursor.go:27
FunctionRequestForegroundColor
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
FunctionRequestProgramStatusSupport
RequestProgramStatusSupport is a command that asks the terminal whether it supports the Program Status Protocol (OSC 7501). A supporting terminal repl
programstatus.go:53
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:21
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
MethodRun
()
renderer_park_test.go:200
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:55
MethodSetStderr
SetStderr sets stderr on the underlying exec.Cmd to the given io.Writer.
exec.go:94
MethodSetStderr
(io.Writer)
renderer_park_test.go:203
MethodSetStdin
SetStdin sets stdin on underlying exec.Cmd to the given io.Reader.
exec.go:78
MethodSetStdin
(io.Reader)
renderer_park_test.go:201
MethodSetStdout
SetStdout sets stdout on underlying exec.Cmd to the given io.Writer.
exec.go:86
MethodSetStdout
(io.Writer)
renderer_park_test.go:202
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:47
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:42
MethodString
String returns the hex representation of the color.
color.go:74
MethodString
String returns the pasted content as a string.
paste.go:10
← previousnext →301–400 of 758, ranked by callers