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

Function cursorTo

packages/effect/src/unstable/cli/internal/ansi.ts:80–85  ·  view source on GitHub ↗
(column: number, row?: number)

Source from the content-addressed store, hash-verified

78
79/** @internal */
80export const cursorTo = (column: number, row?: number): string => {
81 if (row === undefined) {
82 return `${ESC}${Math.max(column + 1, 0)}G`
83 }
84 return `${ESC}${row + 1}${SEP}${Math.max(column + 1, 0)}H`
85}
86
87/** @internal */
88export const cursorDown = (lines: number = 1): string => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected