MCPcopy Create free account

hub / github.com/charmbracelet/bubbletea / functions

Functions758 in github.com/charmbracelet/bubbletea

↓ 2 callersFunctionnewStyles
(darkBG bool)
examples/list-fancy/main.go:20
↓ 2 callersFunctionnewTextarea
()
examples/split-editors/main.go:49
↓ 2 callersMethodnext
()
examples/list-fancy/randomitems.go:140
↓ 2 callersFunctionprogramStatusEquals
(a, b *ProgramStatus)
cursed_renderer.go:913
↓ 2 callersMethodrecoverFromGoPanic
recoverFromGoPanic recovers from a goroutine panic, prints a stack trace, restores the terminal to a usable state, and signals the program to be kille
tea.go:1420
↓ 2 callersMethodrecoverFromPanic
recoverFromPanic recovers from a panic, prints the stack trace, and restores the terminal to a usable state.
tea.go:1395
↓ 2 callersMethodrender
render renders the given view to the renderer.
tea.go:924
↓ 2 callersMethodresetSpinner
()
examples/spinners/main.go:82
↓ 2 callersMethodsetColorProfile
setColorProfile sets the color profile.
renderer.go:49
↓ 2 callersFunctionsetProgramStatus
setProgramStatus reports cur to the terminal. When cur is nil, or addresses a different record than prev, the record of prev is cleared first.
cursed_renderer.go:922
↓ 2 callersFunctionsetProgressBar
(s *cursedRenderer, pb *ProgressBar)
cursed_renderer.go:889
↓ 2 callersMethodsetView
(fn func(*View))
renderer_park_test.go:179
↓ 2 callersMethodsince
since returns everything written after the first n bytes.
renderer_park_test.go:39
↓ 2 callersMethodstartRenderer
startRenderer starts the renderer.
tea.go:1520
↓ 2 callersMethodstopRenderer
stopRenderer stops the renderer. If kill is true, the renderer will be stopped immediately without flushing the last frame.
tea.go:1581
↓ 2 callersFunctionsuccessExecCommand
()
exec_test.go:55
↓ 2 callersFunctiontick
()
examples/fullscreen/main.go:54
↓ 2 callersFunctiontick
()
examples/program-status/main.go:13
↓ 2 callersFunctiontickCmd
()
examples/progress-animated/main.go:89
↓ 2 callersFunctiontickCmd
()
examples/progress-static/main.go:93
↓ 2 callersFunctiontickCmd
()
examples/eyes/main.go:79
↓ 2 callersFunctiontickCmd
()
examples/space/main.go:35
↓ 2 callersMethodtranslateInputEvent
translateInputEvent translates an input event into a Bubble Tea Msg.
input.go:8
↓ 2 callersMethodupdateEyePositions
()
examples/eyes/main.go:67
↓ 2 callersMethodupdateKeybindings
()
examples/split-editors/main.go:183
↓ 2 callersMethodupdateStyles
(isDark bool)
examples/paginator/main.go:56
↓ 2 callersMethodupdateStyles
(isDark bool)
examples/keyboard-enhancements/main.go:85
↓ 2 callersFunctionwaitForActivity
A command that waits for the activity on a channel.
examples/realtime/main.go:34
↓ 2 callersMethodwaitOutput
waitOutput waits until everything in want is written after mark and returns how long that took.
renderer_park_test.go:156
↓ 2 callersMethodwakeRenderer
wakeRenderer restarts the renderer's ticker if it was stopped because nothing was changing. It never blocks.
tea.go:933
↓ 2 callersMethodwipe
()
examples/cellbuffer/main.go:96
↓ 1 callersMethodCursor
()
examples/split-editors/main.go:210
↓ 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 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:24
↓ 1 callersFunctionNewCursor
NewCursor returns a new cursor with the default settings and the given position.
tea.go:396
↓ 1 callersMethodNext
()
examples/composable-views/main.go:143
↓ 1 callersFunctionOpenTTY
OpenTTY opens the running terminal's TTY for reading and writing.
tty.go:182
↓ 1 callersFunctionPrintln
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:79
↓ 1 callersFunctionRaw
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
↓ 1 callersFunctionRequestCapability
RequestCapability is a command that requests the terminal to send its Termcap/Terminfo response for the given capability. Use [WithInput] to enable in
termcap.go:31
↓ 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:32
↓ 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 returns a human-readable name for the given [ProgressBarState]. Values outside the known range return "Unknown".
tea.go:336
↓ 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 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:83
↓ 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:73
↓ 1 callersMethodadd
Adds a channel to the list of handlers. We wait for all handlers to terminate gracefully on shutdown.
tea.go:424
↓ 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:52
↓ 1 callersMethodclearView
clearView blanks the current view's content while preserving terminal mode flags such as AltScreen, so the next flush writes no View output to the ter
renderer.go:59
↓ 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 callersFunctioncountEpollFDs
(t *testing.T)
tty_linux_test.go:29
↓ 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:750
↓ 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:774
↓ 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:760
↓ 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:731
↓ 1 callersMethodhandleResize
handleResize handles terminal resize events.
tea.go:716
↓ 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 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
← previousnext →101–200 of 758, ranked by callers