Skip to main content

cursor

deno@v1.6.3

ANSI escape sequences to control the cursor in a terminal.

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

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)