Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Interface.prototype.getCursorPos
Re-export
import { Interface } from "https://deno.land/std@0.134.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