温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/readline/promises/Readline
点击访问原文链接

Node readline.promises.Readline class | API Reference | Bun

Node readline.promises.Readline class | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:readline/promises/ReadlineMclearLineMclearScreenDownMcommitCoconstructorMcursorToMmoveCursorMrollback

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:readline/promises/ReadlineMclearLineMclearScreenDownMcommitCoconstructorMcursorToMmoveCursorMrollback

class

readline.promises.Readlineclass Readline
clearLine(dir: Direction): this;

The rl.clearLine() method adds to the internal list of pending action an action that clears current line of the associated stream in a specified direction identified by dir. Call rl.commit() to see the effect of this method, unless autoCommit: true was passed to the constructor.

@returns

this

clearScreenDown(): this;

The rl.clearScreenDown() method adds to the internal list of pending action an action that clears the associated stream from the current position of the cursor down. Call rl.commit() to see the effect of this method, unless autoCommit: true was passed to the constructor.

@returns

this

commit(): Promisevoid>;

The rl.commit() method sends all the pending actions to the associated stream and clears the internal list of pending actions.

cursorTo(x: number,y?: number): this;

The rl.cursorTo() method adds to the internal list of pending action an action that moves cursor to the specified position in the associated stream. Call rl.commit() to see the effect of this method, unless autoCommit: true was passed to the constructor.

@returns

this

moveCursor(dx: number,dy: number): this;

The rl.moveCursor() method adds to the internal list of pending action an action that moves the cursor relative to its current position in the associated stream. Call rl.commit() to see the effect of this method, unless autoCommit: true was passed to the constructor.

@returns

this

rollback(): this;

The rl.rollback methods clears the internal list of pending actions without sending it to the associated stream.

@returns

this

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Node readline.promises.Readline class | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    Node readline.promises.Readline class | API Reference | Bun - 提供全网公开链接智能索引服务,快速访问目标内容,支持分类筛选和智能导航