tilto
A TUI (Text User Interface) renderer
🚀 Installation
npm install tilto
👀 Overview
const tilto = ; const box = tilto; boxborders = tilto;boxcontent = 'The quick brown fox jumps over the lazy dog.';console; const ansiRed = '\u001b[31m';const ansiGreen = '\u001b[32m';const ansiReset = '\u001b[0m';boxcontent = 'It also supports マルチバイト文字, Surrogate-pairs and ' + `ANSI escape codes.`;console; boxcontent = '0' '1' '2' '3' '4' '5' '6' '7' '8' '9' '10' '11';boxscroll = y: 4;console;
👇
See also examples.
📄 About Basic Design
The render
method receives a syntax tree expressed by pure-object and converts it to a rectangular string.
You can change the output by modifying the arguments according to the schema. Also, some utilities for that are defined as public API.
In this case, it is recommended to use a library that can safely update objects such as immer.
The schema of that is the following image if it is expressed by TypeScript. If you want to know more about schema, please refer to the source code.
;
🔧 Development
Softwares that needs to be locally installed
- Node.js
== 10
Install this application
git clone git@github.com:kjirou/tit.gitcd ./tiltonpm install