Jump to content




How to enter the shell in Beginner's Turtles


8 replies to this topic

#1 cyanisaac

  • Members
  • 369 posts
  • LocationSan Diego, CA

Posted 02 July 2015 - 10:30 PM

To enter the shell in a beginner's turtle, simply put this code in a program:
if fs.exists("/startup") then
  shell.run("/startup")
end
shell.run("/rom/programs/shell")

And then run it. Your program will now lead into the shell, which is likely where you will want to be if you're not a beginner but just want a super awesome blue turtle with sunglasses or something like that.

I am focusing on making the above code optimized for using the turtles as a normal turtle, for those of you who just like cool stuff, give me some time to optimize it so that it works better :D

Edited by cyanisaac, 02 July 2015 - 10:35 PM.


#2 dan200

  • Administrators
  • 542 posts
  • LocationCambridge, England

Posted 02 July 2015 - 10:58 PM

Or you can just Ctrl-T the IDE program!

#3 cyanisaac

  • Members
  • 369 posts
  • LocationSan Diego, CA

Posted 03 July 2015 - 12:52 AM

View Postdan200, on 02 July 2015 - 10:58 PM, said:

Or you can just Ctrl-T the IDE program!

Well now I feel like a real chump, I went way overboard with my solution.

#4 biggest yikes

  • Members
  • 573 posts

Posted 04 July 2015 - 01:54 PM

I guess I don't have to drag files into my library anymore

#5 TYKUHN2

  • Members
  • 210 posts
  • LocationSomewhere in this dimension... I think.

Posted 08 August 2015 - 04:25 AM

View Postdan200, on 02 July 2015 - 10:58 PM, said:

Or you can just Ctrl-T the IDE program!

But that is too simple

And arn't we supposed to be learning coding? Isn't using the code learning it (somewhat)?

#6 biggest yikes

  • Members
  • 573 posts

Posted 08 August 2015 - 09:17 PM

View PostTYKUHN2, on 08 August 2015 - 04:25 AM, said:

But that is too simple

And arn't we supposed to be learning coding? Isn't using the code learning it (somewhat)?
1. How is it too simple? You're learning how to code, and want to make your own programs in regular CC to see what else you can make with functions like print. Terminate IDE, there you go. There's no reason to make it extremely complicated just to let one escape into the shell. We're not in a labyrinth.
2. You're not learning how your browser was programmed by using it right now, are you?
A very off-topic statement that I couldn't keep to myself

Edited by Atenefyr, 08 August 2015 - 09:23 PM.


#7 vargaszm

  • Members
  • 38 posts

Posted 11 August 2015 - 01:33 AM

CC supports resource packs, but as of now edu isn't supported, or i haven't figured out the extent that it is. I've tested loading other APIs from the resource pack via an autorun in the resource pack with if turtleedu then blah end successfully, but when i tried shell.run'bg lua', the lua prompt doesnt show up until you terminate the IDE.

#8 LeotomasMC

  • Members
  • 66 posts
  • LocationI am a hidden viuris on your computer

Posted 23 August 2015 - 03:09 PM

just open a beginner turtle then go to Program then Code editor and type in this:

shell.run("clear")
shell.run("shell")

and you cant ctrl+t the ide program

and I tried installing my OS on a beginner turtle, you have to type OS or startup or you could add this line to the program

shell.run("startup")

ONLY IF U HAVE A STARTUP PROGRAM

Edited by LeotomasMC, 23 August 2015 - 03:10 PM.


#9 LeotomasMC

  • Members
  • 66 posts
  • LocationI am a hidden viuris on your computer

Posted 23 August 2015 - 10:52 PM

uh oh

opps

I fell bad kinda

:(/>

well then, I thought u couldn't ctrl + t the ide program opps

so if you change the .jar file to a .zip file, you can browse the files, AND it will run like a .jar file, so you can edit files, so I removed the program in the /rom/autorun file and it runs shell on startup. but since the IDE program allows you to press the buttons on the remote and it does stuff, the buttons don't work. so I was thinking this: either make a program that runs in the backround and lets shell programs run and the buttons work, or add that whole part into the shell so that the buttons work, AND the shell works. im pretty sure that my first idea isn't possible (would look like running a program on a moniter). but i don't know. so could i copy and paste that part into the shell program or would that not work? or could someone put a link to a pastebin page that has what i need to put in the shell program? and wow. longest post on CCEDU fourm?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users