-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathrepl-client.html.in
63 lines (62 loc) · 2.42 KB
/
repl-client.html.in
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
53
54
55
56
57
58
59
60
61
62
63
<!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>
#ifnot COMBINE_RESOURCES
<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>
#endif
#if COMBINE_RESOURCES
<script type='text/javascript' src='hlib/dt-combined.js'> </script>
#endif
#ifnot COMBINE_RESOURCES
<script type='text/javascript' src='hlib/FileSaver.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>
#endif
#ifnot FOR_JAVAFX
<script type='text/javascript' src='hlib/domterm-client.js'> </script>
#endif
#if FOR_JAVAFX
<script type='text/javascript'>
var termElement;
var termInstance;
function makeDomTerm() {
let name = "kterm1";
let term;
termElement = DomTerm.makeElement(name, document.body);
termInstance = new window.DTerminal(name);
term = termInstance;
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); }
return term;
}
function initDomTerm() {
termInstance.initializeTerminal(termElement);
termInstance.reportEvent("VERSION", DomTerm.versionInfo);
}
</script>
#endif
</head>
<body></body>
</html>