forked from PerBothner/DomTerm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jfx-term.html
51 lines (51 loc) · 2.27 KB
/
jfx-term.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
<title>DomTerm</title>
<link type='text/css' rel='stylesheet' href='hlib/domterm-core.css'>
<link type='text/css' rel='stylesheet' href='hlib/domterm-standard.css'>
<link type='text/css' rel='stylesheet' href='hlib/domterm-default.css'>
<script type='text/javascript' src='hlib/domterm.js'> </script>
<script type='text/javascript' src='hlib/domterm-version.js'> </script>
<script type='module' src='hlib/terminal.js'> </script>
<script type='module' src='hlib/domterm-parser.js'> </script>
<script type='module' src='hlib/sixel/Colors.js'> </script>
<script type='module' src='hlib/sixel/SixelDecoder.js'> </script>
<script type='text/javascript' src='hlib/FileSaver.js'> </script>
<script type='text/javascript' src='hlib/ResizeSensor.js'> </script>
<script type='text/javascript' src='hlib/wcwidth.js'> </script>
<script type='text/javascript' src='hlib/browserkeymap.js'> </script>
<script type='module' src='hlib/commands.js'> </script>
<script type='text/javascript' src='hlib/domterm-client.js'> </script>
<script type='text/javascript'>
var termElement;
var termInstance;
function makeDomTerm() {
termElement = document.getElementById("term1");
var term = new DomTerm("term1");
term.processInputCharacters =
function(str) { term.java.processInputCharacters(str); };
term.reportEvent =
function(name, data) { term.jclient.reportEvent(name, data); };
term.setWindowSize =
function(numRows, numColumns, availHeight, availWidth) {
term.jclient.setWindowSize(numRows, numColumns,
availHeight, availWidth); };
term.close = function() { if (term && term.java) term.java.close(); }
DomTerm.doCopy = function() { if (term && term.java) term.java.doCopy(); return true; }
DomTerm.doPaste = function() { if (term && term.java) term.java.doPaste(); return true; }
term.log =
function(str) {
if (term && term.java) term.java.log(str); }
termInstance = term;
return term;
}
function initDomTerm() {
termInstance.reportEvent("VERSION", DomTerm.versionInfo);
termInstance.initializeTerminal(termElement);
}
</script>
</head>
<body><div class="domterm" id="term1"></div></body>
</html>