mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 04:04:04 +08:00
update files
This commit is contained in:
parent
00468606af
commit
b5d48fda37
10
canvas.html
10
canvas.html
@ -71,6 +71,7 @@
|
||||
|
||||
xterm.debug = false;
|
||||
|
||||
function write(){
|
||||
[
|
||||
'\u001b[32m\'use strict\'\u001b[39m\u001b[38;5;248m;\u001b[39m',
|
||||
'\u001b[38;5;248m/*jshint browser:true */\u001b[39m',
|
||||
@ -101,13 +102,12 @@
|
||||
''
|
||||
].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);
|
||||
|
||||
document.getElementById('term').innerHTML = html;
|
||||
write();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user