-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.html
52 lines (43 loc) · 1.23 KB
/
demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ace xTerm Web Component Demo Page</title>
<script src="ace-xterm.wc.js" type="module"></script>
<style>
ace-xterm {
width: 800px;
height: 400px;
}
</style>
</head>
<body>
<ace-xterm>
import { ANSI } from 'https://cdn.jsdelivr.net/npm/[email protected]/src/ANSI.js';
const log = new ANSI()
.options( { post: (output) => { console.log(output); return output; } } );
log`
{black.White black text on White background.}
{black.white black text on white background.}
{Black.White Black text on White background.}
{Black.white Black text on white background.}
{Yellow Note use of white vs White, all base colors work this way.}
{White Title case is bright} and {white lowercase is dim.}
red -> Red, blue -> Blue, etc.
chalk micro-chalk
{red red} {red red}
{redBright redBright} {Red Red}
{green green} {green green}
{greenBright greenBright} {Green Green}
{bgBlue bgBlue} {.blue .blue}
{bgBlueBright bgBlueBright} {.Blue .Blue}
{bgRed bgRed} {.red .red}
{bgRedBright bgRedBright} {.Red .Red}
{.Red Sample of White on Red.}
{.red Sample of White on red.}
{.Blue Sample of White on Blue.}
{.blue Sample of White on blue.}
`;
</ace-xterm>
</body>
</html>