项目作者: iAmNathanJ

项目描述 :
ANSI control sequences for your terminal cursor
高级语言: TypeScript
项目地址: git://github.com/iAmNathanJ/cursor.git
创建时间: 2020-03-13T03:10:35Z
项目社区:https://github.com/iAmNathanJ/cursor

开源协议:MIT License

下载


cursor

deno@v1.6.3/badge.svg" alt="deno@v1.6.3">

ANSI escape sequences to control the cursor in a terminal.

  1. import { goHome } from "https://denopkg.com/iamnathanj/cursor@v2.2.0/mod.ts";
  2. await goHome();

Methods

  • hideCursor()
  • showCursor()
  • scrollUp()
  • scrollDown()
  • clearUp()
  • clearDown()
  • clearLeft()
  • clearRight()
  • clearLine()
  • clearScreen()
  • nextLine()
  • prevLine()
  • goHome()
  • save()
  • restore()
  • position()
  • goTo(x, y)
  • goUp(y? = 1)
  • goDown(y? = 1)
  • goLeft(x? = 1)
  • goRight(x? = 1)