-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathterm.html
More file actions
30 lines (30 loc) · 799 Bytes
/
term.html
File metadata and controls
30 lines (30 loc) · 799 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
<!doctype html>
<html>
<head>
<title>terminal</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="term_client.css"/>
<script src="lib/wsocket_client.js"></script>
<script src="term_client.js"></script>
</head>
<body>
<script>
window.onload=function() {
t=termClient.Terminal("termtxt","status");
document.onkeypress=t.keypress;
document.onkeydown=function(){
t.keydown();
};
document.onkeyup=t.keyup;
};
window.onunload=function(){
t.close();
}
</script>
<div id="termwin">
<pre id="status">Connecting...</pre>
<pre id="termtxt">
</pre>
</div>
</body>
</html>