update files

This commit is contained in:
nuintun 2015-12-02 13:31:35 +08:00
parent 00468606af
commit b5d48fda37

View File

@ -71,6 +71,7 @@
xterm.debug = false; xterm.debug = false;
function write(){
[ [
'\u001b[32m\'use strict\'\u001b[39m\u001b[38;5;248m;\u001b[39m', '\u001b[32m\'use strict\'\u001b[39m\u001b[38;5;248m;\u001b[39m',
'\u001b[38;5;248m/*jshint browser:true */\u001b[39m', '\u001b[38;5;248m/*jshint browser:true */\u001b[39m',
@ -101,13 +102,12 @@
'' ''
].forEach(function (line){ xterm.write(line + '\r\n'); }); ].forEach(function (line){ xterm.write(line + '\r\n'); });
xterm.write('\033[41;32m红底绿字\033[0m'); xterm.write('\033[41;32m红底绿字\033[0m' + new Date().toISOString());
var html = xterm.toString('html'); document.getElementById('term').innerHTML = xterm.toString('html');
}
console.log(html); write();
document.getElementById('term').innerHTML = html;
</script> </script>
</body> </body>
</html> </html>