Skip to content

Commit 961f68e

Browse files
committed
I'm crushing your head!
1 parent 108129e commit 961f68e

2 files changed

Lines changed: 25 additions & 2 deletions

File tree

list.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
["README.md/2181","app",["3d",["index.html/1098"]],"apps",["Audio.js/4093","BinView.js/9814","Folder.js/11196","Help.js/979","MediaPlayer.js/2074","Music.js/4844","Terminal.js/96987","TextEdit.js/5301","WorkMan.js/3808","YourApp.js/418","dev",["GetPoint.js/551","Grok.js/14796","Poker.js/36551","Three.js/5119"],"games",["Arcade.js/12599"],"hw",["MidiCtl.js/3691"],"media",["2Cameras.js/3258","Camera.js/3673","MediaPlayer.js/16115","VideoCutter.js/44729"],"template",["Basic.js/489","Template.js/396","WebAudio.js/2877"],"util",["HTML.js/1428","ImageView.js/2703","Unicoder.js/16896"]],"coms",["audio.js/1766","esprima.js/171824","extra.js/10807","fs.js/27999","games",["cfr.js/115420","poker.js/107498","slum.js/71075","zhold",["poker1.js/25062"]],"mail.js/44010","shell.js/175037","template.js/336","test",["dummy.js/21"],"test.js/1982","yt.js/66863","zhold",["mail.js/22724"]],"desk",["index.html/1184"],"index.html/364","mods",["audio",["multi_freq_worklet.js/1502","random_walk_worklet.js/3039"],"games",["GBEmulator.js/9708","NESEmulator.js/222309","binjgb.wasm/87232"],"help",["shell.js/3591"],"hw",["midi.js/2323"],"lang",["shell.js/179108"],"term",["email.js/10406","less.js/19318","log.js/13292","vim.js/162683"],"util",["libwabt.js/1299054","math.js/12125","pretty.js/93856","walt.js/204893","wasm.js/42764","wasmparser.js/34331","webmparser.js/58730"],"workers",["poker.js/37420"]],"node",["server.js/7792","svcs",["imap.js/17772","mount.js/16553","smtp.js/1359","template.js/1831","ws.js/2156","ytdl.js/11982"]],"shell",["index.html/959"],"sys",["config.js/8659","desk.js/217801","fs.js/66821","terminal.js/3649","three.js/3443","util.js/32614"],"www",["blog.css/181","desk.css/1831","docs",["blog-template.html/291","help.html/9104","what-it-is.html/4370"],"examples",["test.sh/66"],"favicon.ico/15086","lotw256.png/41075","lotw48.png/2966","stuff",["noise.html/1669"]]]
1+
["README.md/2181","app",["3d",["index.html/1098"]],"apps",["Audio.js/4093","BinView.js/9814","Folder.js/11196","Help.js/979","MediaPlayer.js/2074","Music.js/4844","Terminal.js/96987","TextEdit.js/5301","WorkMan.js/3808","YourApp.js/418","dev",["GetPoint.js/551","Grok.js/14796","Poker.js/36551","Three.js/5119"],"games",["Arcade.js/12599"],"hw",["MidiCtl.js/3691"],"media",["2Cameras.js/3258","Camera.js/3673","MediaPlayer.js/16115","VideoCutter.js/44729"],"template",["Basic.js/489","Template.js/396","WebAudio.js/2877"],"util",["HTML.js/1428","ImageView.js/2703","Unicoder.js/16896"]],"coms",["audio.js/1766","esprima.js/171824","extra.js/10807","fs.js/27999","games",["cfr.js/115420","poker.js/107498","slum.js/71075","zhold",["poker1.js/25062"]],"mail.js/44010","shell.js/175037","template.js/336","test",["dummy.js/21"],"test.js/1982","yt.js/66863","zhold",["mail.js/22724"]],"desk",["index.html/1184"],"index.html/364","mods",["audio",["multi_freq_worklet.js/1502","random_walk_worklet.js/3039"],"games",["GBEmulator.js/9708","NESEmulator.js/222309","binjgb.wasm/87232"],"help",["shell.js/3591"],"hw",["midi.js/2323"],"lang",["shell.js/179108"],"term",["email.js/10406","less.js/19318","log.js/13292","vim.js/162683"],"util",["libwabt.js/1299054","math.js/12125","pretty.js/93856","walt.js/204893","wasm.js/42764","wasmparser.js/34331","webmparser.js/58730"],"workers",["poker.js/37420"]],"node",["server.js/7792","svcs",["imap.js/17772","mount.js/16553","smtp.js/1359","template.js/1831","ws.js/2156","ytdl.js/11982"]],"shell",["index.html/959"],"sys",["config.js/8659","desk.js/217801","fs.js/66821","terminal.js/4300","three.js/3443","util.js/32614"],"www",["blog.css/181","desk.css/1831","docs",["blog-template.html/291","help.html/9104","what-it-is.html/4370"],"examples",["test.sh/66"],"favicon.ico/15086","lotw256.png/41075","lotw48.png/2966","stuff",["noise.html/1669"]]]

sys/terminal.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const NS = LOTW;
44
const {globals} = NS;
55
const{FS_PREF,fs,KC,ALWAYS_PREVENT}=globals;
6-
const {log, cwarn, cerr, gbid, make, mkdv, evt2Sym} = LOTW.api.util;
6+
const {log, cwarn, cerr, gbid, make, mkdv, evt2Sym, mkOverlay, center} = LOTW.api.util;
77
//»
88

99
//Var«
@@ -120,9 +120,32 @@ makeDOM(){//«
120120
main._bgcol="#000";
121121
win._add(main);
122122
this.main=main;
123+
this.Main=main;
123124

124125
document.body._add(win);
125126
}//»
127+
mkOverlay(){//«
128+
this.overlay = mkOverlay({id: this.id});
129+
this.maxOverlayLength=42;
130+
}//»
131+
doOverlay(strarg){//«
132+
if (!this.overlay) return;
133+
let str;
134+
if (strarg) {
135+
str = strarg;
136+
if (str.length > this.maxOverlayLength) str = str.slice(0,this.maxOverlayLength)+"...";
137+
}
138+
this.overlay.innerText = str;
139+
if (this.overlayTimer) clearTimeout(this.overlayTimer);
140+
else this.Main.appendChild(this.overlay);
141+
center(this.overlay, this.Main);
142+
if (this.Main.scrollTop) this.overlay._y += this.Main.scrollTop;
143+
this.overlayTimer = setTimeout(()=>{
144+
this.overlayTimer = null;
145+
this.overlay._del();
146+
}, 1500);
147+
}
148+
//»
126149
loadApp(){//«
127150

128151
return new Promise((Y,N)=>{//«

0 commit comments

Comments
 (0)