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

Creating my own terminal.

Started by BabyCodder, 13 April 2013 - 11:02 PM
BabyCodder #1
Posted 14 April 2013 - 01:02 AM
Hey! I am creating a OS but I am stuck on one thing. The page for people to code there own programs. I am working on a terminal in a screen but I encounter 2 problems. 1) When you exit the terminal and click back on it you cannot go through the text written there. It's like its just a visual thing. 2) When they write they can go thurther than I would like them to. I would like the box for the text to be like the normal CraftOS but it does not alow running of programs and it and there is none of the average programs. It just is a text box for coding. I know how to write the data to a file but I have the problems above. Any help would be apritiated. Thanks!
Mads #2
Posted 14 April 2013 - 04:40 AM
Look at the rom/programs/edit program. You should be able to modify it to fit your needs.
Bubba #3
Posted 14 April 2013 - 05:27 AM
You need to post your current code for us to help you with a problem in it.
BabyCodder #4
Posted 14 April 2013 - 07:54 AM
You need to post your current code for us to help you with a problem in it.
There isn't a problem; there is something I need sugestions with.

Look at the rom/programs/edit program. You should be able to modify it to fit your needs.
Thanks!
BabyCodder #5
Posted 14 April 2013 - 10:16 AM
I checked out the edit program… got confused. Could anybody provide a little more basic information on how to do this?
Spongy141 #6
Posted 14 April 2013 - 11:09 AM
Have you tried fs API?
BabyCodder #7
Posted 14 April 2013 - 12:00 PM
Have you tried fs API?
I know how to write the files. I did not say I had a problem with that. I have a problem with getting the words to stay there like CraftOS and to stop the words going over the boarder I have.
Spongy141 #8
Posted 14 April 2013 - 12:34 PM
You need to explain better.
Sammich Lord #9
Posted 14 April 2013 - 01:24 PM
We can't really help with such a vague description of your problem.
Sariaz #10
Posted 14 April 2013 - 08:28 PM
If im not mistaken his problem is making text wrap to the next line when it hits the edge of the screen. This correct babycodder?
BabyCodder #11
Posted 14 April 2013 - 09:44 PM
If im not mistaken his problem is making text wrap to the next line when it hits the edge of the screen. This correct babycodder?
Yes. And when someone exits the mini-screen to code in, and then enters it; the text they just write is not there; its just visual. Code and picture below.


SpoilerGetting them now!
Sariaz #12
Posted 15 April 2013 - 06:36 AM
By not there and just visual do you mean its on the screen but not saved or the coding window is now blank after swiching out and back to it?
BabyCodder #13
Posted 15 April 2013 - 06:37 AM
By not there and just visual do you mean its on the screen but not saved or the coding window is now blank after swiching out and back to it?
Its on the screen, but not saved thus you cannot scroll through it.
Sammich Lord #14
Posted 15 April 2013 - 06:58 AM
Mind providing some screenshots so we can visualize it better?