CLIte/clite/libterm.js

22 lines
332 B
JavaScript

clite.libs.data = function() {
clite.libs.load('libterm','term',function(io,env) {
// TODO: get the controlling tty id
return Object.create({
// clears the terminal
clear:function() {
var ctty = 0;
clite.tty.clear(ctty);
},
ttyctrl:function(fn,v) {
var ctty = 0;
return clite.tty.ttyctrl(ctty,fn,v);
}
});
});
}