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

Function processTextClear

packages/effect/src/unstable/cli/Prompt.ts:3599–3604  ·  view source on GitHub ↗
(state: TextState)

Source from the content-addressed store, hash-verified

3597}
3598
3599const processTextClear = (state: TextState) =>
3600 Effect.succeed(
3601 Action.NextFrame({
3602 state: { ...state, cursor: 0, value: "", error: Option.none() }
3603 })
3604 )
3605
3606const processTextCursorLeft = (state: TextState) => {
3607 if (state.cursor <= 0) {

Callers 1

handleTextProcessFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected