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.
Interface.getCursorPos method | Node.js readline module | Bun BuildDocsReferenceGuidesBlogDiscord/node:readline/Interface/getCursorPosMgetCursorPos BuildDocsReferenceGuidesBlogDiscord /node:readline/Interface/getCursorPosMgetCursorPos readline.Interface.getCursorPosgetCursorPos(): CursorPos; Referenced typesinterface CursorPoscols: numberrows: number
Search the reference...
/
method
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →Interface.getCursorPos method | Node.js readline module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method node:readline.Interface.getCursorPos | Bun