MCPcopy Create free account

hub / github.com/charmbracelet/bubbletea / functions

Functions758 in github.com/charmbracelet/bubbletea

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:594
FunctionTestBatch
(t *testing.T)
commands_test.go:30
FunctionTestClearMsg
(t *testing.T)
screen_test.go:164
FunctionTestCursedRendererDrawsChangedEmptyAndTallViews
(t *testing.T)
cursed_renderer_test.go:104
FunctionTestCursedRendererEnablesUnicodeModeForGraphemeWidth
(t *testing.T)
cursed_renderer_test.go:14
FunctionTestCursedRendererResumeRestoresUnicodeMode
(t *testing.T)
cursed_renderer_test.go:59
FunctionTestCursedRendererSkipsUnchangedEmptyAndTallViews
(t *testing.T)
cursed_renderer_test.go:131
FunctionTestCursedRendererSkipsUnchangedView
(t *testing.T)
cursed_renderer_test.go:89
FunctionTestCursedRendererWcWidthDoesNotEnableUnicodeMode
(t *testing.T)
cursed_renderer_test.go:29
FunctionTestCursedRenderer_insertAboveBeforeFirstFlush
(t *testing.T)
cursed_renderer_test.go:349
FunctionTestCursedRenderer_insertAboveLineBoundaries
(t *testing.T)
cursed_renderer_test.go:454
FunctionTestCursedRenderer_insertAboveUsesActiveWidthMethod
Fixes: https://github.com/charmbracelet/bubbletea/issues/1802 insertAbove must measure wrapped lines with the active screen buffer's width method. Wh
cursed_renderer_test.go:418
FunctionTestCursedRenderer_mouseVsFlush
Fixes: https://github.com/charmbracelet/bubbletea/issues/1690
cursed_renderer_test.go:180
FunctionTestCursedRenderer_programStatus
(t *testing.T)
programstatus_test.go:12
FunctionTestCursedRenderer_resizeStaleFrame
Fixes: https://github.com/charmbracelet/bubbletea/issues/1780
cursed_renderer_test.go:368
FunctionTestCursedRenderer_restoresKittyKeyboardStack
(t *testing.T)
cursed_renderer_test.go:242
FunctionTestCursedRenderer_updatesKittyKeyboardFlagsInPlace
(t *testing.T)
cursed_renderer_test.go:309
FunctionTestEvery
(t *testing.T)
commands_test.go:8
FunctionTestExecProcessAltscreenNoLeak
TestExecProcessAltscreenNoLeak verifies the #431 fix also holds in alt screen mode and that the program leaves the terminal in a clean state. The fix
exec_test.go:224
FunctionTestExecProcessDoesNotLeakViewOutput
TestExecProcessDoesNotLeakViewOutput is a regression test for #431: when ExecProcess runs a subprocess, the renderer must not flush the last View() to
exec_test.go:194
FunctionTestFallbackDimensions
(t *testing.T)
tty_test.go:31
FunctionTestHandleSignalsReturnsAfterContextCancelDuringPendingSend
TestHandleSignalsReturnsAfterContextCancelDuringPendingSend is a regression test for the signal-goroutine deadlock on shutdown: a signal arriving whil
signals_test.go:18
FunctionTestIsPlausibleWindowSize
(t *testing.T)
screen_test.go:212
FunctionTestKillDuringStartupRace
(t *testing.T)
tea_test.go:252
FunctionTestLogToFile
(t *testing.T)
logging_test.go:11
FunctionTestLogToFileWithPrefixSpacing
(t *testing.T)
logging_test.go:32
FunctionTestOptions
(t *testing.T)
options_test.go:11
FunctionTestProgramClosesTraceFile
(t *testing.T)
tea_test.go:97
FunctionTestProgramNonTTYDimensions
(t *testing.T)
tty_test.go:125
FunctionTestProgramPrintAfterExit
(t *testing.T)
tea_test.go:588
FunctionTestProgramQuitBeforeRunPreservesMessages
(t *testing.T)
quit_lifecycle_test.go:67
FunctionTestProgramQuitDuringInitialization
(t *testing.T)
quit_lifecycle_test.go:100
FunctionTestProgramQuitRespectsFilter
(t *testing.T)
quit_lifecycle_test.go:142
FunctionTestProgramQuitUnstarted
(t *testing.T)
quit_lifecycle_test.go:41
FunctionTestProgramSendBeforeRunStillWaits
(t *testing.T)
quit_lifecycle_test.go:189
FunctionTestProgressBarStateStringOutOfRange
TestProgressBarStateStringOutOfRange is a regression test for https://github.com/charmbracelet/bubbletea/issues/1711: String panicked with an index-ou
tea_test.go:995
FunctionTestReleaseRestoreTerminalClosesCancelReader
Every ReleaseTerminal/RestoreTerminal cycle (Exec, suspend) replaces the input cancel reader. The replaced reader must be closed, or its epoll file de
tty_linux_test.go:50
FunctionTestReleaseTerminalWithNilInputDoesNotWait
(t *testing.T)
exec_test.go:141
FunctionTestRendererQuitWhileParked
(t *testing.T)
renderer_park_test.go:254
FunctionTestRendererStopsTickingWhenIdle
(t *testing.T)
renderer_park_test.go:205
FunctionTestRendererWakes
Every way of giving the renderer work must wake it.
renderer_park_test.go:220
FunctionTestSequence
(t *testing.T)
commands_test.go:35
FunctionTestTeaBatchMsg
(t *testing.T)
tea_test.go:452
FunctionTestTeaContext
(t *testing.T)
tea_test.go:355
FunctionTestTeaContextBatchDeadlock
(t *testing.T)
tea_test.go:416
FunctionTestTeaContextImplodeDeadlock
(t *testing.T)
tea_test.go:389
FunctionTestTeaExec
(t *testing.T)
exec_test.go:62
FunctionTestTeaExecWithNilInput
(t *testing.T)
exec_test.go:123
FunctionTestTeaGoroutinePanic
(t *testing.T)
tea_test.go:742
FunctionTestTeaKill
(t *testing.T)
tea_test.go:322
FunctionTestTeaModel
(t *testing.T)
tea_test.go:74
FunctionTestTeaNestedSequenceMsg
(t *testing.T)
tea_test.go:541
FunctionTestTeaNoCapabilityQueryWithoutInput
TestTeaNoCapabilityQueryWithoutInput is a regression test for https://github.com/charmbracelet/gum/issues/1118: programs without input can't read the
tea_test.go:848
FunctionTestTeaNoRun
(t *testing.T)
tea_test.go:631
FunctionTestTeaNoTerminalQueriesWithoutInput
TestTeaNoTerminalQueriesWithoutInput is a regression test for https://github.com/charmbracelet/gum/issues/1118: programs without input can't read the
tea_test.go:937
FunctionTestTeaPanic
(t *testing.T)
tea_test.go:711
FunctionTestTeaQuit
(t *testing.T)
tea_test.go:119
FunctionTestTeaRunTwice
TestTeaRunTwice is a regression test for running a Program a second time after the first Run returned. Run resets its per-run state (handlers, finishe
tea_test.go:671
FunctionTestTeaSend
(t *testing.T)
tea_test.go:566
FunctionTestTeaSequenceMsg
(t *testing.T)
tea_test.go:488
FunctionTestTeaSequenceMsgWithBatchMsg
(t *testing.T)
tea_test.go:513
FunctionTestTeaWaitKill
(t *testing.T)
tea_test.go:198
FunctionTestTeaWaitQuit
(t *testing.T)
tea_test.go:144
FunctionTestTeaWithFilter
(t *testing.T)
tea_test.go:277
FunctionTestTick
(t *testing.T)
commands_test.go:19
FunctionTestTranslateProgramStatusSupport
(t *testing.T)
programstatus_test.go:83
FunctionTestViewModel
(t *testing.T)
screen_test.go:61
MethodTitle
()
examples/list-default/main.go:18
MethodUpdate
(msg Msg)
tty_linux_test.go:20
MethodUpdate
(msg Msg)
cursed_renderer_test.go:164
MethodUpdate
(msg Msg)
exec_test.go:34
MethodUpdate
(msg Msg)
exec_test.go:169
MethodUpdate
(msg Msg)
quit_lifecycle_test.go:23
MethodUpdate
(msg Msg)
tty_test.go:17
MethodUpdate
(msg Msg)
tea_test.go:42
MethodUpdate
(msg Msg)
tea_test.go:655
MethodUpdate
(msg Msg)
tea_test.go:786
MethodUpdate
(Msg)
tea_test.go:840
MethodUpdate
(msg Msg)
tea_test.go:912
MethodUpdate
(msg Msg)
screen_test.go:37
MethodUpdate
(msg Msg)
renderer_park_test.go:78
MethodUpdate
(msg tea.Msg)
examples/progress-animated/main.go:49
MethodUpdate
(msg tea.Msg)
examples/list-fancy/main.go:109
MethodUpdate
(msg tea.Msg)
examples/progress-download/tui.go:39
MethodUpdate
(msg tea.Msg)
examples/paginator/main.go:66
MethodUpdate
(msg tea.Msg)
examples/spinners/main.go:50
MethodUpdate
(msg tea.Msg)
examples/stopwatch/main.go:53
MethodUpdate
(msg tea.Msg)
examples/split-editors/main.go:123
MethodUpdate
(msg tea.Msg)
examples/isbn-form/main.go:159
MethodUpdate
(msg tea.Msg)
examples/composable-views/main.go:81
← previousnext →401–500 of 758, ranked by callers