Skip to content

Commit 2dc3950

Browse files
committed
Wheee! What a lineup!!!
1 parent 2b9f26f commit 2dc3950

3 files changed

Lines changed: 741 additions & 233 deletions

File tree

apps/Terminal.js

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*URKSPLK: In order to reload the terminal AND the shell with the same Alt+r keypress,
1+
/*URKSPLK: In order to reload the terminal AND the shell with the same Alt+r keypress,«
22
we have to call Win.reload({appOnly: true}), otherwise there'd be an infinite loop.
33
44
The interesting part of passwordMode is @DYWUEORK, where there is a tineout in the toString
@@ -7,7 +7,7 @@ and then a "*" after it. This mimics the way that cellfonez typically handle pas
77
inputs. Also of relevance is the bit @WZZKUDJK that takes the valueOf() of each individual
88
character, which is necessary for password mode chars to return the "real" string rather
99
than, e.g. "********".
10-
*/
10+
» */
1111
/*5/6/25: Just put the shell into mods/lang/shell.js.«
1212
Now need to figure out how to deal with the onreload situation:
1313
1) In normal REPL mode, we might want to reload the terminal app (this file) or the shell
@@ -108,6 +108,11 @@ Now scrutinizing handleBackspace @MSKEUTJDK. Just want to enable basic multi-lin
108108
//This means that the terminal app window is reloaded by Ctrl+r (there is no onreload on the app)
109109
//let USE_ONRELOAD = false;
110110

111+
const RELOAD_LIBS=[
112+
//"games.poker",
113+
"games.cfr"
114+
];
115+
111116
let RELOAD_TERM_ONRELOAD = false;
112117

113118
//This means that the terminal app's onreload method is set to _onreload (to reload the shell)
@@ -3595,47 +3600,23 @@ if (RELOAD_TERM_ONRELOAD) await this.Win.reload({appOnly: true});
35953600
//log(this.Win);
35963601

35973602
}//»
3598-
async _reloadLibs(arr){
3603+
async _reloadLibs(arr){//«
35993604
for (let mod of arr){
36003605
if (!this.ShellMod.allLibs[mod]) continue;
36013606
this.doOverlay(`Delete: ${mod}`);
36023607
await this.ShellMod.util.deleteMods([mod]);
36033608
await this.ShellMod.util.doImports([mod], cerr);
36043609
}
3605-
}
3606-
async _onreload(){
3610+
}//»
3611+
async _onreload(){//«
36073612

36083613
//Just reload the shell (if working on a devtest command)
36093614
// await this._reloadShell();
36103615

3611-
await this._reloadLibs(["games.poker"]);
3612-
}
3613-
3614-
/*
3615-
async _ondevreload(){//«
3616-
3617-
this.doOverlay("ondevreload: start");
3616+
// await this._reloadLibs(["games.poker"]);
3617+
await this._reloadLibs(RELOAD_LIBS);
36183618

3619-
//EIOFJKL
3620-
let use_str;
3621-
if (this.curShell){
3622-
use_str = this.curShell.commandStr;
3623-
this.curShell.cancel();
3624-
this.responseEnd();
3625-
}
3626-
// await load_new_shell();
3627-
this.ShellMod.util.deleteMods(DEL_MODS);
3628-
if (use_str){
3629-
this.handleLineStr(use_str);
3630-
this.handleEnter();
3631-
}
3632-
// this.ShellMod.util.deleteComs(DEL_COMS);
3633-
// await this.ShellMod.util.doImports(ADD_COMS, cerr);
3634-
this.doOverlay("ondevreload: done");
3635-
3636-
}
3637-
//»
3638-
*/
3619+
}//»
36393620

36403621
onkill(if_dev_reload){//«
36413622
if (this.curEditNode) this.curEditNode.unlockFile();

0 commit comments

Comments
 (0)