MCPcopy
hub / github.com/Effect-TS/effect / processCursorLeft

Function processCursorLeft

packages/cli/src/internal/prompt/text.ts:194–204  ·  view source on GitHub ↗
(state: State)

Source from the content-addressed store, hash-verified

192}
193
194function processCursorLeft(state: State) {
195 if (state.cursor <= 0) {
196 return Effect.succeed(Action.Beep())
197 }
198 const cursor = state.cursor - 1
199 return Effect.succeed(
200 Action.NextFrame({
201 state: { ...state, cursor, error: Option.none() }
202 })
203 )
204}
205
206function processCursorRight(state: State) {
207 if (state.cursor >= state.value.length) {

Callers 1

handleProcessFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…