mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
14 lines
597 B
JavaScript
14 lines
597 B
JavaScript
Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, target) {
|
|
can.onmotion.clear(can), can.base.isFunc(cb) && cb(msg)
|
|
can.page.style(can, html.HEIGHT, can.ConfHeight(), html.WIDTH, can.ConfWidth())
|
|
can.require(["/node_modules/xterm/lib/xterm.js", "/node_modules/xterm/css/xterm.css"], function() {
|
|
can.term = new Terminal(), can.term.open(can._output), can.term.onData(function(val) {
|
|
can.runAction(can.request({}, {"channel": can.Conf("channel")}), "input", [val], function() {})
|
|
})
|
|
})
|
|
},
|
|
grow: function(can, str) {
|
|
can.term.write(atob(str))
|
|
},
|
|
})
|