1.0.0 • Published 3 years ago

@rooftop-media/ktty v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Ktty is JS tools for making nice UIs in text terminals.

Ktty works a lot like a web browser, like Chrome, Safari, or Firefox.

Here are the differences between Ktty and web browsers:

Web Browsers Chrome, safari, firefox, etc.kTTY
Runs on your OS' desktop GUI.Runs in a terminal emulator, on your OS.
Turns HTML & CSS into multimedia pages.Turns TTML & TSS into monospace text pages.
Gets pages from HTTP requests to web servers.Gets pages locally, or from a KW server.
Can't access computer files. (for security!)Can access your computer files. (Trade-off: No http. )

Here are the similarities between Ktty and web browsers:

  • Both can create interactive pages with JavaScript.

  • Both have a built-in Window JS object, for getting details about the screen size, history, etc.

  • Both have a built-in Document JS object, for writing scripts that interact with the page's elements.

//  Import KTTY like this. 
var KTTY    = require("ktty");
var ktty    = new KTTY();

TTY stands for TeleTYpe, referring to teletype terminals.

kTTY is best described as "KitchenWare's Terminal Tools", even though the acronym doesn't quite match.

Defining some relevant technical terms.

The table bel is a glossary index. Click

TermDefinitionWikipedia
Text terminalA screen that displays text-graphics only.Link

1.0.0

3 years ago