Skip to content

Commit 47f4a18

Browse files
committed
I'm crushing your head!
1 parent 961f68e commit 47f4a18

7 files changed

Lines changed: 28 additions & 42 deletions

File tree

apps/Terminal.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,14 @@ Now scrutinizing handleBackspace @MSKEUTJDK. Just want to enable basic multi-lin
110110

111111
const RELOAD_LIBS=[
112112
//"games.poker",
113-
"games.cfr"
113+
//"games.cfr"
114114
];
115115

116116
let RELOAD_TERM_ONRELOAD = false;
117117

118118
//This means that the terminal app's onreload method is set to _onreload (to reload the shell)
119119
let USE_ONRELOAD = true;
120+
//let USE_ONRELOAD = false;
120121
//let NO_ONRELOAD = false;
121122
//Terminal Imports«
122123
const NS = LOTW;
@@ -265,8 +266,11 @@ this.statusBar = Win.statusBar;
265266
this.appClass="cli";
266267
this.isEditor = false;
267268
this.isPager = false;
268-
this.env={};
269-
this.env['USER'] = globals.CURRENT_USER;
269+
this.env={
270+
USER: globals.CURRENT_USER,
271+
HOME: globals.home_path
272+
};
273+
//this.env['USER'] = globals.CURRENT_USER;
270274
//this.env = globals.TERM_ENV;
271275
this.ENV = this.env;
272276
//this.funcs = globals.TERM_FUNCS;

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<html>
33
<head>
44
<title>
5-
Links
5+
LOTW Links
66
</title>
77
<link rel="icon" href="/www/favicon.ico">
88
<body>
9-
<h2><u>Linux on the Web</u> links</h2>
9+
<h2>Links for Linux on the Web</h2>
1010
<h3><a href="/shell">Shell environment</a></h3>
1111
<h3><a href="/desk">Desktop environment</a></h3>
1212
<h3><a href="https://github.com/linuxontheweb/linuxontheweb.github.io">Github repo (external link)</a></h3>

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/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"]]]
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/97072","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/366","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/162675"],"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/217563","fs.js/66825","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"]]]

mods/term/vim.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
/*8/6/25:
1+
/*8/9/25:
2+
*/
3+
/*8/6/25:«
24
35
Now I am in LOTW, hacking on my vim with my vim!!!
46
@@ -19,7 +21,7 @@ In the file, we need to put the module onto:
1921
LOTW.mods["local.dev.vim"]
2022
//»
2123
22-
*/
24+
»*/
2325
//@SRKTLDM: To enable automatic line wrapping
2426
//Historical development notes (and old code) are kept in doc/dev/VIM
2527
//«Notes
@@ -3073,7 +3075,6 @@ const scroll_up = (n, opts={} )=>{//«
30733075
return true;
30743076
};//»
30753077
»*/
3076-
30773078
let {moveCur, noRender, noSetSel}=opts;
30783079
if (scroll_num - n < 0) return;
30793080
scroll_num-=n;
@@ -3082,7 +3083,6 @@ const scroll_up = (n, opts={} )=>{//«
30823083
let maxy = h-num_stat_lines-1;
30833084
let diff = y - maxy;
30843085
if (diff > 0) {
3085-
scroll_num += diff;
30863086
y = maxy;
30873087
}
30883088
}
@@ -3091,7 +3091,6 @@ const scroll_up = (n, opts={} )=>{//«
30913091
if (!noRender) render();
30923092
return true;
30933093
};//»
3094-
30953094
const scroll_down = (n, opts={}) => {//«
30963095
let {moveCur}=opts;
30973096
/*«

node/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ const http = require('http');
99
const log=(...args)=>{console.log(...args);};
1010
const cwarn=(...args)=>{console.warn(...args);};
1111

12-
let ws_server, ws_client;
12+
//let ws_server, ws_client;
1313

1414
//»
1515
//Var«
1616

1717
//const HOST="0.0.0.0";
1818
const HOST = "localhost";
19-
const HOST_SVC_ROOT = '/usr/local/home/lotw/local/_writes';
19+
const HOST_SVC_ROOT = `${process.env.HOME}/zsave/writes`;
2020
//const PORT = 4443;
2121
const PORT = 8080;
2222
//const PORT = 8081;

sys/desk.js

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ a system-level hotkey which simply stores the lastSelectedPoint
2626
onto the Window object. This is what select_point_from_window() does,
2727
but we are currently commenting that out @FWIKNGH.
2828
29-
We should generalize it for the specific colors (grid crosshairs) we want for
30-
out background.
29+
We should generalize it for the specific colors (grid crosshairs) we
30+
want for our background.
3131
»*/
3232
/*Keep it simple: If an app defines onreload, just call *that* instead of doing the«
3333
system default @HGLAURJF. This is for applications that have their own internal
@@ -1354,7 +1354,8 @@ const{pathToNode}=fsapi;
13541354
let dev_mode;
13551355
let admin_mode;
13561356
let debug_localstorage=false;
1357-
let show_desktop_during_win_cycle = true;
1357+
//let show_desktop_during_win_cycle = true;
1358+
let show_desktop_during_win_cycle = false;
13581359
let win_cycle_wins_hidden = false;
13591360
//let folders_open_in_same_window = false;
13601361
let folders_open_in_same_window = true;
@@ -3963,8 +3964,6 @@ const window_cycle = () => {//«
39633964
if (!len) return;
39643965

39653966
if (!num_win_cycles){
3966-
// if (taskbar_hidden&&num_minimized_wins) taskbar.show(true);
3967-
39683967
CWIN_HOLD = CWIN;
39693968
wins.sort((a,b)=>{
39703969
if (pi(a.winElem.style.zIndex) < pi(b.winElem.style.zIndex)) return 1;
@@ -3974,7 +3973,11 @@ const window_cycle = () => {//«
39743973
let samelen = num_minimized_wins === wins.length;
39753974
let first;
39763975
if (!(!CWIN_HOLD && !samelen)) first = wins.shift();
3977-
if (show_desktop_during_win_cycle) {
3976+
3977+
//The NOWINDOW object is used to indicate that the desktop will count as one of the "windows" to cycle through.
3978+
//We always show the desktop if no windows are showing because they are all minimized
3979+
//as we start cycling them,
3980+
if (show_desktop_during_win_cycle || !CWIN_HOLD) {
39783981
wins.push(NOWINDOW);
39793982
len++;
39803983
}
@@ -4010,26 +4013,6 @@ const window_cycle = () => {//«
40104013
CG.on(WIN_CYCLE_CG_OP);
40114014
}
40124015

4013-
/*«
4014-
if (show_desktop_during_win_cycle) {
4015-
if (!win_cycle_wins_hidden){
4016-
if ((w===CWIN_HOLD) || (num_win_cycles && (!(num_win_cycles%len)))){
4017-
if (w===CWIN_HOLD) num_win_cycles++;
4018-
CWIN_HOLD=null;
4019-
have_window_cycle = true;
4020-
win_cycle_wins_hidden = true;
4021-
toggle_show_windows();
4022-
CG.off();
4023-
return;
4024-
}
4025-
}
4026-
if (win_cycle_wins_hidden){
4027-
win_cycle_wins_hidden = false;
4028-
toggle_show_windows();
4029-
CG.on(WIN_CYCLE_CG_OP);
4030-
}
4031-
}
4032-
»*/
40334016
CWCW = w;
40344017
CWCW.z_hold = CWCW.winElem._z;
40354018
CWCW.winElem._z= CG_Z+1;
@@ -8180,7 +8163,7 @@ cwarn("There was an unattached icon in ICONS!");
81808163
case "i_CAS": return toggle_icon_display();
81818164
// case "t_CAS": return tile_windows();
81828165
case "l_CA": return toggle_layout_mode();
8183-
case "SPACE_CAS":
8166+
// case "SPACE_CAS":
81848167
//if (cwin) {
81858168
//FWIKNGH
81868169
// select_point_from_window();

sys/fs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*5/24/25: THERE WAS AN ISSUE WITH NOT HAVING "." on certain DirNode's kids,
1+
/*5/24/25: THERE WAS AN ISSUE WITH NOT HAVING "." on certain DirNode's kids,«
22
at the top-level, so we had to add them in at the dir mounting points during
33
fs init. This bug screwed up the folder app.
44
@@ -7,7 +7,7 @@ First: intra-SHM_TYPE mv operations are trivial for both files and folders
77
Next: " " " " cp operations are trivial for files
88
Then we need to figure out about mv'ing and cp'ing to/from FS_TYPE.
99
cp is trivial for files
10-
*/
10+
»*/
1111
//New Issues«
1212
/*9/8/2024: Made /dev/shm to allow for arbitrary in-memory files and folders. Files under here
1313
will use a new SHM_TYPE, which tells the system not to mess with databasing (which

0 commit comments

Comments
 (0)