mirror of
https://codeberg.org/TicklishHoneyBee/CLIte.git
synced 2026-03-11 09:04:37 +00:00
22 lines
332 B
JavaScript
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);
|
|
}
|
|
|
|
});
|
|
});
|
|
}
|