]> git.proxmox.com Git - mirror_xterm.js.git/blob - demo/index.html
Fixes on demo based on configurable `tabStopWidth`
[mirror_xterm.js.git] / demo / index.html
1 <!doctype html>
2 <html>
3 <head>
4 <title>xterm.js demo</title>
5 <link rel="stylesheet" href="/build/xterm.css" />
6 <link rel="stylesheet" href="/build/addons/fullscreen/fullscreen.css" />
7 <link rel="stylesheet" href="style.css" />
8 <script src="https://cdnjs.cloudflare.com/ajax/libs/fetch/1.0.0/fetch.min.js"></script>
9 <script src="/build/xterm.js" ></script>
10 <script src="/build/addons/attach/attach.js" ></script>
11 <script src="/build/addons/fit/fit.js" ></script>
12 <script src="/build/addons/fullscreen/fullscreen.js" ></script>
13 </head>
14 <body>
15 <h1>xterm.js: xterm, in the browser</h1>
16 <div id="terminal-container"></div>
17 <div>
18 <h2>Options</h2>
19 <p>
20 <label><input type="checkbox" id="option-cursor-blink"> cursorBlink</label>
21 </p>
22 <p>
23 <label>scrollback <input type="number" id="option-scrollback" value="1000" /></label>
24 </p>
25 <p>
26 <label>tabStopWidth <input type="number" id="option-tabstopwidth" value="8" /></label>
27 </p>
28 <div>
29 <h3>Size</h3>
30 <div>
31 <div style="display: inline-block; margin-right: 16px;">
32 <label for="cols">Columns</label>
33 <input type="number" id="cols" />
34 </div>
35 <div style="display: inline-block; margin-right: 16px;">
36 <label for="rows">Rows</label>
37 <input type="number" id="rows" />
38 </div>
39 </div>
40 </div>
41 </div>
42 <p><strong>Attention:</strong> The demo is a barebones implementation and is designed for xterm.js evaluation purposes only. Exposing the demo to the public as is would introduce security risks for the host.</p>
43 <script src="main.js" defer ></script>
44 </body>
45 </html>