-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path2.html
More file actions
33 lines (32 loc) · 868 Bytes
/
2.html
File metadata and controls
33 lines (32 loc) · 868 Bytes
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
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="node_modules/xterm/css/xterm.css" />
<script src="node_modules/xterm/lib/xterm.js"></script>
<script src="node_modules/xterm-addon-fit/lib/xterm-addon-fit.js"></script>
</head>
<body style="background-color:black;margin:0;overflow:hidden" onresize="fa.fit();">
<div style='overflow:hidden;display:block;height:100vh;width:100vw;' id="terminal"></div>
<script>
const fa = new FitAddon.FitAddon();
var t = new Terminal();
t.loadAddon(fa);
t.open(document.getElementById('terminal'));
fa.fit();
t.onData(e=>{console.log('---------');console.log(e)});
t.write('\x9B?1006h');
t.write('\x9B?1002h');
pr={};
pr.s=new Uint8Array(32*1024);
pr.p='~@1024 +6 =45'.split(' ');
pr.c=()=>
{
let i=0;
while(i<pr.p.length)
{
if(pr.p[i][0]=='?'){i=parseInt(pr.p[i].substr(2))/4;continue;}
}
};
</script>
</body>
</html>