MCPcopy Create free account

hub / github.com/charmbracelet/bubbletea / functions

Functions659 in github.com/charmbracelet/bubbletea

↓ 1 callersFunctionEvery
Every is a command that ticks in sync with the system clock. So, if you wanted to tick with the system clock every second, minute or hour you could us
commands.go:102
↓ 1 callersFunctionExec
Exec is used to perform arbitrary I/O in a blocking fashion, effectively pausing the Program while execution is running and resuming it when execution
exec.go:22
↓ 1 callersFunctionLogToFile
LogToFile sets up default logging to log to a file. This is helpful as we can't print to the terminal since our TUI is occupying it. If the file doesn
logging.go:23
↓ 1 callersFunctionLogToFileWith
LogToFileWith does allows to call LogToFile with a custom LogOptionsSetter.
logging.go:35
↓ 1 callersFunctionNewCursor
NewCursor returns a new cursor with the default settings and the given position.
tea.go:374
↓ 1 callersMethodNext
()
examples/composable-views/main.go:143
↓ 1 callersFunctionOpenTTY
OpenTTY opens the running terminal's TTY for reading and writing.
tty.go:130
↓ 1 callersFunctionSetClipboard
SetClipboard produces a command that sets the system clipboard using OSC52. Note that OSC52 is not supported in all terminals.
clipboard.go:30
↓ 1 callersMethodSetPrefix
(string)
logging.go:31
↓ 1 callersMethodSetStderr
(io.Writer)
exec.go:64
↓ 1 callersMethodSetStdin
(io.Reader)
exec.go:62
↓ 1 callersMethodSetStdout
(io.Writer)
exec.go:63
↓ 1 callersMethodShortHelp
()
examples/autocomplete/main.go:74
↓ 1 callersFunctionSleepPrintln
print string after stopping for a certain period of time
examples/sequence/main.go:46
↓ 1 callersMethodStart
()
examples/progress-download/main.go:26
↓ 1 callersMethodString
String return a human-readable value for the given [ProgressBarState].
tea.go:321
↓ 1 callersFunctionTick
Tick produces a command at an interval independent of the system clock at the given duration. That is, the timer begins precisely when invoked, and ru
commands.go:154
↓ 1 callersFunctionWithFilter
WithFilter supplies an event filter that will be invoked before Bubble Tea processes a tea.Msg. The event filter can return any tea.Msg which will the
options.go:133
↓ 1 callersFunctionWithoutCatchPanics
WithoutCatchPanics disables the panic catching that Bubble Tea does by default. If panic catching is disabled the terminal will be in a fairly unusabl
options.go:76
↓ 1 callersFunctionWithoutRenderer
WithoutRenderer disables the renderer. When this is set output and log statements will be plainly sent to stdout (or another output if one is set) wit
options.go:98
↓ 1 callersFunctionWithoutSignalHandler
WithoutSignalHandler disables the signal handler that Bubble Tea sets up for Programs. This is useful if you want to handle signals yourself.
options.go:66
↓ 1 callersMethodadd
Adds a channel to the list of handlers. We wait for all handlers to terminate gracefully on shutdown.
tea.go:402
↓ 1 callersMethodbuttonView
()
examples/clickable/main.go:298
↓ 1 callersFunctioncapitalize
(s string)
examples/clickable/words.go:61
↓ 1 callersFunctioncheckbox
(label string, checked bool)
examples/views/main.go:226
↓ 1 callersFunctionchoicesView
Sub-views The first view, where you're choosing a task
examples/views/main.go:182
↓ 1 callersFunctionchosenView
The second view, after a task has been chosen
examples/views/main.go:204
↓ 1 callersFunctionclamp
(value, min, max float64)
examples/space/main.go:88
↓ 1 callersFunctionclearErrorAfter
(t time.Duration)
examples/file-picker/main.go:23
↓ 1 callersMethodclearScreen
clearScreen clears the screen.
renderer.go:50
↓ 1 callersMethodclose
close closes the renderer and flushes any remaining data.
renderer.go:23
↓ 1 callersFunctioncolorFloatToHex
Helper function for converting colors to hex. Assumes a value between 0 and 1.
examples/views/main.go:269
↓ 1 callersFunctioncolorToHex
Convert a colorful.Color to a hexadecimal format.
examples/views/main.go:263
↓ 1 callersMethodcurrentFocusedModel
()
examples/composable-views/main.go:136
↓ 1 callersFunctioncycle
(stack []string)
examples/clickable/words.go:75
↓ 1 callersMethoddescribeCursor
()
examples/cursor-style/main.go:52
↓ 1 callersFunctiondrawEllipse
(canvas [][]string, x0, y0, rx, ry int)
examples/eyes/main.go:179
↓ 1 callersFunctiondrawEllipse
(cb *cellbuffer, xc, yc, rx, ry float64)
examples/cellbuffer/main.go:24
↓ 1 callersFunctionenterAltScreen
(s *cursedRenderer, write bool)
cursed_renderer.go:653
↓ 1 callersMethodeventLoop
eventLoop is the central message loop. It receives and handles the default Bubble Tea messages, update the model and triggers redraws.
tea.go:743
↓ 1 callersMethodexec
exec runs an ExecCommand and delivers the results to the program as a Msg.
exec.go:102
↓ 1 callersFunctionexitAltScreen
(s *cursedRenderer, write bool)
cursed_renderer.go:663
↓ 1 callersFunctionfinalPause
()
examples/progress-download/tui.go:23
↓ 1 callersMethodfooterView
()
examples/autocomplete/main.go:182
↓ 1 callersMethodfooterView
()
examples/textinput/main.go:80
↓ 1 callersFunctiongetGradientColor
(position float64)
examples/splash/main.go:120
↓ 1 callersFunctiongetPackages
()
examples/package-manager/packages.go:40
↓ 1 callersFunctiongetResponse
(url string)
examples/progress-download/main.go:42
↓ 1 callersMethodgradient
()
examples/splash/main.go:69
↓ 1 callersMethodhandleCommands
handleCommands runs commands in a goroutine and sends the result to the program's message channel.
tea.go:700
↓ 1 callersMethodhandleResize
handleResize handles terminal resize events.
tea.go:685
↓ 1 callersMethodhandleSignals
()
tea.go:643
↓ 1 callersMethodheaderView
()
examples/textarea/main.go:82
↓ 1 callersMethodheaderView
()
examples/textinput/main.go:79
↓ 1 callersMethodheight
()
examples/cellbuffer/main.go:106
↓ 1 callersMethodhelpView
()
examples/stopwatch/main.go:44
↓ 1 callersMethodhelpView
()
examples/glamour/main.go:132
↓ 1 callersMethodhelpView
()
examples/timer/main.go:67
↓ 1 callersMethodinit
(w, h int)
examples/cellbuffer/main.go:79
↓ 1 callersMethodinitInput
()
tty_unix.go:15
↓ 1 callersFunctioninitialModel
()
examples/list-fancy/main.go:178
↓ 1 callersFunctioninitialModel
()
examples/isbn-form/main.go:130
↓ 1 callersFunctioninitialModel
()
examples/dynamic-textarea/main.go:23
↓ 1 callersFunctioninitialModel
()
examples/textinputs/main.go:36
↓ 1 callersFunctioninitialModel
()
examples/chat/main.go:33
↓ 1 callersFunctioninitialModel
()
examples/autocomplete/main.go:87
↓ 1 callersFunctioninitialModel
()
examples/eyes/main.go:53
↓ 1 callersFunctioninitialModel
()
examples/textarea/main.go:30
↓ 1 callersFunctioninitialModel
()
examples/doom-fire/main.go:118
↓ 1 callersFunctioninitialModel
()
examples/prevent-quit/main.go:57
↓ 1 callersFunctioninitialModel
()
examples/keyboard-enhancements/main.go:97
↓ 1 callersFunctioninitialModel
()
examples/textinput/main.go:31
↓ 1 callersFunctioninitialModel
()
examples/list-simple/main.go:72
↓ 1 callersFunctioninitialModel
()
examples/spinner/main.go:23
↓ 1 callersFunctioninitialModel
()
tutorials/basics/main.go:16
↓ 1 callersMethodinsertAbove
insertAbove inserts unmanaged lines above the renderer.
renderer.go:35
↓ 1 callersFunctioninterpolateColors
(color1, color2 color.Color, t float64)
examples/splash/main.go:149
↓ 1 callersFunctionlistenForActivity
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 callersMethodlistenForResize
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 callersFunctionmakeRampStyles
Utils Generate a blend of colors.
examples/views/main.go:251
↓ 1 callersFunctionnewCard
(str string)
examples/canvas/main.go:68
↓ 1 callersFunctionnewCursedRenderer
(w io.Writer, env []string, width, height int)
cursed_renderer.go:40
↓ 1 callersFunctionnewDelegateKeyMap
()
examples/list-fancy/delegate.go:78
↓ 1 callersMethodnewDialog
(x, y int)
examples/clickable/main.go:261
↓ 1 callersFunctionnewExample
(isDark bool)
examples/glamour/main.go:59
↓ 1 callersFunctionnewItemDelegate
(keys *delegateKeyMap, styles *styles)
examples/list-fancy/delegate.go:9
↓ 1 callersFunctionnewListKeyMap
()
examples/list-fancy/main.go:53
↓ 1 callersFunctionnewModel
()
examples/paginator/main.go:35
↓ 1 callersFunctionnewModel
()
examples/split-editors/main.go:84
↓ 1 callersFunctionnewModel
(timeout time.Duration)
examples/composable-views/main.go:69
↓ 1 callersFunctionnewModel
(initialValue string)
examples/pipe/main.go:58
↓ 1 callersFunctionnewModel
()
examples/package-manager/main.go:32
↓ 1 callersFunctionnewModel
()
examples/tui-daemon-combo/main.go:65
↓ 1 callersFunctionnewModel
()
examples/send-msg/main.go:45
↓ 1 callersFunctionnewModel
()
examples/query-term/main.go:18
↓ 1 callersFunctionnewModel
()
examples/help/main.go:75
↓ 1 callersFunctionnewStyles
(bgIsDark bool)
examples/paginator/main.go:22
↓ 1 callersFunctionnewStyles
(darkBG bool)
examples/list-simple/main.go:25
↓ 1 callersFunctionnewStyles
(bgIsDark bool)
examples/tabs/main.go:20
↓ 1 callersFunctionnextRandomWord
()
examples/clickable/words.go:41
← previousnext →101–200 of 659, ranked by callers