-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
62 lines (62 loc) · 2.33 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<title>ttty</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0">
<meta name="description" content="A lightweight (1kb) browser terminal powered by TypeScript" />
<meta name="theme-color" content="#000000">
<link rel="icon" href="favicon.svg">
<style>
body {
height: 100vh;
margin: 0;
display: flex;
}
.terminal, aside {
width: 500px;
flex-shrink: 0;
background-color: black;
}
</style>
</head>
<body>
<aside id="terminal">
</aside>
<main>
<h1>ttty</h1>
<hr/>
<h2>A tiny browser terminal "emulator"</h2>
<article>
<p>
Unlike <a href="https://github.com/vercel/hyper" target="_blank" rel="noreferrer noopener">hyper</a>
or <a href="https://github.com/xtermjs/xterm.js" target="_blank" rel="noreferrer noopener">xterm.js</a>, this is just a tool to bring the barebones terminal experience to your browser.
At minimal cost, with a powerful but small API in ~1kb of gzipped code.
</p>
<p>
Available on NPM or as a "drop-in" ES module / js file.
</p>
<h3>
Featuring:
</h3>
<ul>
<li>Tiny, dependency-free and built with modern JS</li>
<li>Easy-to-add custom commands</li>
<li data-exec="color random">Customizable look</li>
<li>Events</li>
<li>Command history</li>
<li data-exec="help">A built-in help message</li>
<li data-exec="multiply">Command arguments with validation</li>
<li data-exec="start">Interruptable "foreground process" imitation</li>
<li>Small but powerful API</li>
</ul>
</article>
<article>
<p>
See the <a href="https://github.com/mkrl/ttty/blob/master/README.md" target="_blank">full documentation</a> available @ README
</p>
</article>
</main>
<script type="module" src="/preview/main.ts"></script>
</body>
</html>