This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
jesusthekiller's profile picture

[Any version I guess] A way to make custom shells (includes idea how to do it)

Started by jesusthekiller, 16 June 2013 - 01:07 AM
jesusthekiller #1
Posted 16 June 2013 - 03:07 AM
Hi all, I've played a lot with shells recently and I've noticed one thing: There is no way to launch shell without launching shell! It bugs me a lot since we end up with shellception eating resources. So, this is my suggestion: create a way to make local shells. It is how I imagine it:
  • in bios.lua: check if file "shell" exists
  • If yes - launch this file, if not - launch original shell
And profits:
  1. A way to protect from running "startup" on disk drives
  2. Proper OSes
  3. And more that I can't think of.
I hope you will like it :)/>
Goof #2
Posted 16 June 2013 - 04:01 AM
why do you want to make local shells? you can just modify the current shell, creating a script on startup?
i dont see anything good in this suggest :(/>
jesusthekiller #3
Posted 16 June 2013 - 04:12 AM
  1. A way to protect from running "startup" on disk drives
  2. Proper OSes
  3. And more that I can't think of
H4X0RZ #4
Posted 16 June 2013 - 04:51 AM
I like the Idea :)/>/>

I had something like this a week ago and tried to do it.
With something like this on the top of the standard shell

if fs.exist("shell") then
shell.exit()
shell.run("shell")
else
--The other shell crap
end

:]
Lyqyd #5
Posted 16 June 2013 - 05:03 AM
Um, no.

Check out NeverCast's Top Level Coroutine Override topic.

Locked.