(options: IntegerOptionsReq)
| 2761 | } |
| 2762 | |
| 2763 | const handleNumberClear = (options: IntegerOptionsReq) => { |
| 2764 | return Effect.fnUntraced(function*(state: NumberState, _: Action<NumberState, number>) { |
| 2765 | const terminal = yield* Terminal.Terminal |
| 2766 | const columns = yield* terminal.columns |
| 2767 | const figures = yield* platformFigures |
| 2768 | const resetCurrentLine = Ansi.eraseLine + Ansi.cursorLeft |
| 2769 | const errorText = renderNumberError(state, figures.pointerSmall, { plain: true }) |
| 2770 | const promptText = renderNumberOutput(state, "?", figures.pointerSmall, options, { plain: true }) |
| 2771 | const clearOutput = clearOutputWithError(promptText, columns, errorText) |
| 2772 | return clearOutput + resetCurrentLine |
| 2773 | }) |
| 2774 | } |
| 2775 | |
| 2776 | const renderNumberInput = ( |
| 2777 | state: NumberState, |
no test coverage detected