MCPcopy Create free account

hub / github.com/charmbracelet/bubbletea / functions

Functions806 in github.com/charmbracelet/bubbletea

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
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:601
FunctionTestBatch
(t *testing.T)
commands_test.go:30
FunctionTestClearMsg
(t *testing.T)
screen_test.go:164
FunctionTestCursedRendererDrawsChangedEmptyAndTallViews
(t *testing.T)
cursed_renderer_test.go:105
FunctionTestCursedRendererEnablesUnicodeModeForGraphemeWidth
(t *testing.T)
cursed_renderer_test.go:15
FunctionTestCursedRendererReportsQueries
The renderer's keyboard enhancements query counts as a query.
tty_drain_test.go:181
FunctionTestCursedRendererResumeRestoresUnicodeMode
(t *testing.T)
cursed_renderer_test.go:60
FunctionTestCursedRendererSkipsUnchangedEmptyAndTallViews
(t *testing.T)
cursed_renderer_test.go:132
FunctionTestCursedRendererSkipsUnchangedView
(t *testing.T)
cursed_renderer_test.go:90
FunctionTestCursedRendererWcWidthDoesNotEnableUnicodeMode
(t *testing.T)
cursed_renderer_test.go:30
FunctionTestCursedRenderer_insertAboveAfterLeavingAltScreen
Fixes: https://github.com/charmbracelet/bubbletea/issues/1881
cursed_renderer_test.go:639
FunctionTestCursedRenderer_insertAboveBeforeEnteringAltScreen
(t *testing.T)
cursed_renderer_test.go:669
FunctionTestCursedRenderer_insertAboveBeforeFirstFlush
(t *testing.T)
cursed_renderer_test.go:447
FunctionTestCursedRenderer_insertAboveFlushesQueuedView
(t *testing.T)
cursed_renderer_test.go:604
FunctionTestCursedRenderer_insertAboveLineBoundaries
(t *testing.T)
cursed_renderer_test.go:556
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:520
FunctionTestCursedRenderer_mouseVsFlush
Fixes: https://github.com/charmbracelet/bubbletea/issues/1690
cursed_renderer_test.go:181
FunctionTestCursedRenderer_programStatus
(t *testing.T)
programstatus_test.go:12
FunctionTestCursedRenderer_resizeStaleFrame
Fixes: https://github.com/charmbracelet/bubbletea/issues/1780
cursed_renderer_test.go:470
FunctionTestCursedRenderer_restoresKittyKeyboardStack
(t *testing.T)
cursed_renderer_test.go:340
FunctionTestCursedRenderer_uncomparableViewColors
Fixes: https://github.com/charmbracelet/bubbletea/issues/1848
cursed_renderer_test.go:243
FunctionTestCursedRenderer_updatesKittyKeyboardFlagsInPlace
(t *testing.T)
cursed_renderer_test.go:407
FunctionTestCursedRenderer_viewColorChanges
Colors are compared by value: the same color, whatever its type, doesn't redraw the view, while a different color or a reset does.
cursed_renderer_test.go:269
FunctionTestDrainQueryReplies
Replies to queries that arrive after the input reader is canceled must not be left in the tty input for the next reader, such as an exec'd process.
tty_drain_test.go:83
FunctionTestDrainQueryRepliesNoPendingQuery
Without outstanding queries there is nothing to drain, and no DA1 request is sent.
tty_drain_test.go:159
FunctionTestDrainQueryRepliesOldQuery
The reply to a query sent long ago has been read by the input reader already, so there's nothing to drain.
tty_drain_test.go:170
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
FunctionTestHandleSignalsCatchesSecondSignalDuringShutdown
TestHandleSignalsCatchesSecondSignalDuringShutdown is a regression test for https://github.com/charmbracelet/bubbletea/issues/1849: after a quit messa
signals_test.go:64
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
FunctionTestProgramCanceledInput
(t *testing.T)
shutdown_input_test.go:181
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:1033
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
FunctionTestReleaseTerminalDeliversQueryReplies
Releasing the terminal hands the replies it read to the program.
tty_drain_test.go:117
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
FunctionTestShutdownClosesInputOnce
A reader that shutdown closed must not be closed again when a later run replaces it: closing a cancel reader closes raw file descriptors, so a second
shutdown_input_test.go:106
FunctionTestShutdownDefersCloseAfterInputTimeout
(t *testing.T)
shutdown_input_test.go:62
FunctionTestShutdownDrainsQueryReplies
A program that quits right after it starts sends its queries during shutdown. Their replies must be read before the terminal is handed back to the she
tty_drain_test.go:140
FunctionTestShutdownInputFallbacks
(t *testing.T)
shutdown_input_test.go:128
FunctionTestShutdownWaitsForCancelableInput
(t *testing.T)
shutdown_input_test.go:24
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:886
FunctionTestTeaNoRun
(t *testing.T)
tea_test.go:631
← previousnext →401–500 of 806, ranked by callers