Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method Interface.prototype.getCursorPos
import { Interface } from "https://deno.land/std@0.158.0/node/_readline.d.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.