0.10.0 • Published 3 years ago

@es-git/terminal v0.10.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

terminal

This is part of the ES-Git project.

Install

npm install --save @es-git/terminal

Usage

import Teminal from '@es-git/terminal';

//Create a terminal, and log to the console
const terminal = new Terminal(m => console.log(m));

//log normal text
terminal.log('ready');//ready

//carriage return (\r) will reset cursor to start of line
terminal.log('\rset\r');//set

//append newline at end of line
terminal.logLine('go!!!');//go!!!

//append just a newline
terminal.logLine();//go!!!\n

console.log(terminal.content); //go!!!
0.10.0

3 years ago

0.9.0

6 years ago

0.5.1

6 years ago

0.4.2

6 years ago

0.4.0

6 years ago