Il sito funziona meglio con JavaScript.
Home
Esplora
lain.church
Aiuto
Registrati
Accedi
izaya
/
OC-PsychOS2
mirror da
https://git.shadowkat.net/izaya/OC-PsychOS2.git
Segui
1
Vota
1
Forka
0
Codice
Problemi
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
added a quit function to the shell environment, for obvious purposes
pull/1/head
XeonSquared
4 anni fa
parent
194564b959
commit
ec5d938a64
1 ha cambiato i file
con
3 aggiunte
e
0 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
lib/shell.lua
+ 3
- 0
lib/shell.lua
Vedi File
@@ -21,6 +21,9 @@ end
function shell.interactive()
local shenv = setmetatable({}, {__index=shindex})
local run = true
function shenv.quit()
run = false
end
while run do
io.write(string.format("\27[32m%s:%s>\27[0m ",os.getenv("HOSTNAME") or "localhost",(os.getenv("PWD") or _VERSION)))
local input = io.read()
Write
Preview
Loading…
Annulla
Salva