mirror of
https://codeberg.org/TicklishHoneyBee/CLIte.git
synced 2026-03-11 09:04:37 +00:00
19 lines
305 B
JavaScript
19 lines
305 B
JavaScript
clite.libs.data = function() {
|
|
|
|
clite.libs.load('libterm','term',function(io,env) {
|
|
|
|
return Object.create({
|
|
|
|
ctty:clite.proc.getTTY(io.pid),
|
|
// clears the terminal
|
|
clear:function() {
|
|
clite.tty.clear(this.ctty);
|
|
},
|
|
|
|
ttyctrl:function(fn,v) {
|
|
return clite.tty.ttyctrl(this.ctty,fn,v);
|
|
}
|
|
|
|
});
|
|
});
|
|
}
|