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

Function getAltScreenRecoveryRepaintMode

src/ink/altScreenResizePolicy.ts:35–41  ·  view source on GitHub ↗
(
  synchronizedOutputSupported: boolean,
)

Source from the content-addressed store, hash-verified

33 * home row-by-row so recovery does not flash blank first.
34 */
35export function getAltScreenRecoveryRepaintMode(
36 synchronizedOutputSupported: boolean,
37): Exclude<AltScreenRepaintMode, 'none'> {
38 return synchronizedOutputSupported
39 ? 'erase-before-paint'
40 : 'repaint-from-home'
41}

Callers 3

forceRedrawMethod · 0.85
reenterAltScreenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected