MCPcopy Create free account
hub / github.com/Noumena-Network/code / normalizeRow

Function normalizeRow

src/ink/terminalReplayOracle.ts:315–317  ·  view source on GitHub ↗
(value: string, width: number)

Source from the content-addressed store, hash-verified

313}
314
315function normalizeRow(value: string, width: number): string[] {
316 return [...value.padEnd(width, ' ').slice(0, width)]
317}
318
319function clamp(value: number, min: number, max: number): number {
320 return Math.min(Math.max(value, min), max)

Callers 5

constructorMethod · 0.85
eraseDisplayMethod · 0.85
clearDisplayMethod · 0.85
scrollUpMethod · 0.85
scrollDownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected