Go to Latest
method Interface.prototype.getCursorPos
import { Interface } from "https://dotland.deno.dev/std@0.145.0/node/readline.ts";

Returns the real position of the cursor in relation to the input prompt + string. Long input (wrapping) strings, as well as multiple line prompts are included in the calculations.

Returns

CursorPos