<!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>
