sisteransi

WebJar for sisteransi

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

sisteransi
Последняя версия

Последняя версия

1.0.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

sisteransi
WebJar for sisteransi
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/terkelg/sisteransi

Скачать sisteransi

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/sisteransi/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>sisteransi</artifactId>
    <version>1.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/sisteransi/
implementation 'org.webjars.npm:sisteransi:1.0.5'
// https://jarcasting.com/artifacts/org.webjars.npm/sisteransi/
implementation ("org.webjars.npm:sisteransi:1.0.5")
'org.webjars.npm:sisteransi:jar:1.0.5'
<dependency org="org.webjars.npm" name="sisteransi" rev="1.0.5">
  <artifact name="sisteransi" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='sisteransi', version='1.0.5')
)
libraryDependencies += "org.webjars.npm" % "sisteransi" % "1.0.5"
[org.webjars.npm/sisteransi "1.0.5"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

sister ANSI Version Build Status Downloads

Ansi escape codes faster than you can say "Bam bam".

Installation

npm install sisteransi

Usage

const ansi = require('sisteransi');
// or const { cursor } = require('sisteransi');

const p = str => process.stdout.write(str);

// move cursor to 2, 1
p(ansi.cursor.to(2, 1));

// to up, one down
p(ansi.cursor.up(2)+ansi.cursor.down(1));

API

cursor

to(x, y)

Set the absolute position of the cursor. x0 y0 is the top left of the screen.

move(x, y)

Set the position of the cursor relative to its current position.

up(count = 1)

Move cursor up a specific amount of rows. Default is 1.

down(count = 1)

Move cursor down a specific amount of rows. Default is 1.

forward(count = 1)

Move cursor forward a specific amount of rows. Default is 1.

backward(count = 1)

Move cursor backward a specific amount of rows. Default is 1.

nextLine(count = 1)

Move cursor to the next line a specific amount of lines. Default is 1.

prevLine(count = 1)

Move cursor to the previous a specific amount of lines. Default is 1.

left

Move cursor to the left side.

hide

Hide cursor.

show

Show cursor.

save

Save cursor position.

restore

Restore cursor position.

scroll

up(count = 1)

Scroll display up a specific amount of lines. Default to 1.

down(count = 1)

Scroll display down a specific amount of lines. Default to 1.

erase

screen

Erase the screen and move the cursor the top left position.

up(count = 1)

Erase the screen from the current line up to the top of the screen. Default to 1.

down(count = 2)

Erase the screen from the current line down to the bottom of the screen. Default to 1.

line

Erase the entire current line.

lineEnd

Erase from the current cursor position to the end of the current line.

lineStart

Erase from the current cursor position to the start of the current line.

lines(count)

Erase from the current cursor position up the specified amount of rows.

clear

screen

Clear the terminal screen. (Viewport)

Credit

This is a fork of ansi-escapes.

License

MIT © Terkel Gjervig

Версии библиотеки

Версия
1.0.5
1.0.4
1.0.0