Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RLabs-Inc/sveltui
/ functions
Functions
174 in github.com/RLabs-Inc/sveltui
⨍
Functions
174
◇
Types & classes
35
Method
constructor
(width: number, height: number)
src/input/mouse.ts:287
Method
constructor
(verbose = false)
scripts/build.mjs:47
Method
constructor
(options = {})
scripts/build.mjs:96
Function
createBorderChars
(chars: BorderCharSet)
src/utils/borders.ts:214
Function
darken
(color: ColorInput, amount = 0.1)
src/utils/bun-color.ts:280
Method
disable
* Disable SGR mouse protocol
src/input/mouse.ts:156
Function
disableRawMode
()
src/utils/bun-output.ts:112
Method
dispatch
* Dispatch a mouse event * Returns true if event was handled
src/input/mouse.ts:316
Method
drawCircle
* Draw a circle outline
src/canvas/PixelBuffer.ts:236
Method
drawLine
* Draw a horizontal line
src/canvas/PixelBuffer.ts:178
Method
drawRect
* Draw a rectangle outline
src/canvas/PixelBuffer.ts:209
Method
enable
* Enable SGR mouse protocol * This sends the appropriate escape sequences to the terminal
src/input/mouse.ts:140
Function
enableRawMode
()
src/utils/bun-output.ts:103
Function
enterAlternateScreen
()
src/utils/bun-output.ts:82
Function
exitAlternateScreen
()
src/utils/bun-output.ts:89
Method
fillCircle
* Fill a circle
src/canvas/PixelBuffer.ts:264
Method
fillRect
* Fill a rectangle
src/canvas/PixelBuffer.ts:225
Method
fillRect
* Fill a rectangle with a component index
src/input/mouse.ts:75
Method
flush
* Flush the buffer to stdout
src/utils/bun-output.ts:151
Function
focusNext
()
src/input/keyboard.svelte.ts:237
Function
focusPrevious
()
src/input/keyboard.svelte.ts:244
Method
getAllCells
* Get all terminal cells as a 2D array * Returns a NEW array each time (important for reactivity)
src/canvas/PixelBuffer.ts:380
Function
getBorderChars
(style: BorderStyle | BorderCharacters)
src/utils/borders.ts:204
Function
getContentClipRect
( index: number, parentClip?: ClipRect )
src/core/render/renderer.svelte.ts:251
Function
getDebugPanel
()
src/debug/debug-panel.svelte.ts:187
Method
getIndex
()
src/components/base-component.svelte.ts:288
Function
getTheme
()
src/theme/theme.svelte.ts:175
Function
handleError
(error: Error)
src/mount.svelte.ts:52
Function
handleExit
()
src/mount.svelte.ts:151
Function
handleResize
()
src/mount.svelte.ts:112
Method
handler
(data: Buffer)
src/input/mouse.ts:246
Function
hideCursor
()
src/utils/bun-output.ts:54
Method
installHandler
* Install input handler on a readable stream
src/input/mouse.ts:242
Function
isValidColor
(color: ColorInput)
src/utils/bun-color.ts:287
Function
lastEvent
()
src/input/keyboard.svelte.ts:261
Function
lastKey
()
src/input/keyboard.svelte.ts:264
Function
lighten
(color: ColorInput, amount = 0.1)
src/utils/bun-color.ts:273
Function
moveCursor
(x: number, y: number)
src/utils/bun-output.ts:47
Function
moveDown
(n: number = 1)
src/utils/ansi-codes.ts:19
Function
moveLeft
(n: number = 1)
src/utils/ansi-codes.ts:27
Function
moveRight
(n: number = 1)
src/utils/ansi-codes.ts:23
Function
moveTo
(x: number, y: number)
src/utils/ansi-codes.ts:11
Function
moveUp
(n: number = 1)
src/utils/ansi-codes.ts:15
Function
onFocused
(index: number, handler: KeyHandler)
src/input/keyboard.svelte.ts:225
Function
onKey
(key: string | string[], handler: () => void)
src/input/keyboard.svelte.ts:208
Method
processBatch
(batch, processor)
scripts/build.mjs:246
Function
renderBorder
( buffer: FrameBuffer, x: number, y: number, width: number, height: number, style: number, color
src/core/render/renderer.svelte.ts:134
Function
reset
()
src/utils/bun-output.ts:96
Method
resize
* Resize the hit grid
src/input/mouse.ts:423
Function
restoreCursor
()
src/utils/bun-output.ts:75
Function
rightAlignText
(text: string, width: number)
src/utils/bun-text.ts:210
Function
saveCursor
()
src/utils/bun-output.ts:68
Function
scrollDown
(n: number = 1)
src/utils/ansi-codes.ts:136
Function
scrollUp
(n: number = 1)
src/utils/ansi-codes.ts:132
Method
setBackground
* Set background color used when clearing
src/canvas/PixelBuffer.ts:130
Function
setBg256
(color: number)
src/utils/ansi-codes.ts:63
Function
setBgColor
(hex: number)
src/utils/ansi-codes.ts:51
Function
setFg256
(color: number)
src/utils/ansi-codes.ts:59
Function
setFgColor
(hex: number)
src/utils/ansi-codes.ts:44
Function
setScrollRegion
(top: number, bottom: number)
src/utils/ansi-codes.ts:128
Function
setTextStyle
(style: number)
src/utils/ansi-codes.ts:108
Function
setTheme
(themeName: string | Theme)
src/theme/theme.svelte.ts:147
Function
showCursor
()
src/utils/bun-output.ts:61
Function
toANSIWithDepth
( color: ColorInput, depth: '16' | '256' | '16m' = '16m', background = false )
src/utils/bun-color.ts:131
Function
toHex
( color: ColorInput, uppercase = false )
src/utils/bun-color.ts:233
Function
toRGBA
( color: ColorInput )
src/utils/bun-color.ts:178
Function
toggleDebugPanel
()
src/debug/debug-panel.svelte.ts:24
Function
truncateText
( text: string, maxWidth: number, ellipsis = '...' )
src/utils/bun-text.ts:154
Function
updateDebugKey
(key: string, raw: string)
src/debug/debug-panel.svelte.ts:34
Method
updateHitGrid
* Update hit grid (call after rendering)
src/input/mouse.ts:308
Function
useComponent
( componentType: number, props: ComponentProps, canHaveChildren = false )
src/components/base-component.svelte.ts:310
Method
warning
(message)
scripts/build.mjs:66
Function
writeFrame
(ansiOutput: string)
src/utils/bun-output.ts:121
Function
writeStderr
(data: string | Uint8Array)
src/utils/bun-output.ts:28
← previous
101–174 of 174, ranked by callers