MCPcopy Create free account
hub / github.com/Effect-TS/effect / clearOutputWithError

Function clearOutputWithError

packages/effect/src/cli/Prompt.ts:1622–1629  ·  view source on GitHub ↗
(outputText: string, columns: number, errorText?: string)

Source from the content-addressed store, hash-verified

1620}
1621
1622const clearOutputWithError = (outputText: string, columns: number, errorText?: string): string => {
1623 if (errorText !== undefined && errorText.length > 0) {
1624 return Ansi.cursorDown(lines(errorText, columns))
1625 + eraseText(`\n${errorText}`, columns)
1626 + eraseText(outputText, columns)
1627 }
1628 return eraseText(outputText, columns)
1629}
1630
1631interface ConfirmOptionsReq extends OptionsReq<ConfirmOptions> {}
1632

Callers 4

handleDateClearFunction · 0.85
handleMultiSelectClearFunction · 0.85
handleNumberClearFunction · 0.85
Prompt.tsFile · 0.85

Calls 2

eraseTextFunction · 0.85
linesFunction · 0.70

Tested by

no test coverage detected