This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
going to a new line
Started by Enma Ai, 03 August 2012 - 05:59 PMPosted 03 August 2012 - 07:59 PM
When under the lua program in a computer how do I go to a new line not the /n command but I mean like a new line in Microsoft word because enter executes the code so what do I press.
Posted 03 August 2012 - 08:05 PM
you dont go to a new line, after a command you can just use a space to separate the commands
Posted 03 August 2012 - 08:37 PM
Like abc said, you can't. Why would you need to do that anyway?
Posted 03 August 2012 - 09:47 PM
that implies that they are trying to write commands over multiple linesbecause enter executes the code.
Posted 03 August 2012 - 09:56 PM
Yes, I know, but why? Why would you need to write commands on multiple lines? There's no programs with a lot of/long arguments.that implies that they are trying to write commands over multiple linesbecause enter executes the code.
Posted 03 August 2012 - 09:58 PM
I think the OP needs to clarify what they want. If they are trying to make their program in the lua prompt, then that is just not how it's done.
If you are trying to do that, then just use the edit program to create the program, and edit it onscreen…
If you are trying to do that, then just use the edit program to create the program, and edit it onscreen…
Posted 03 August 2012 - 09:58 PM
its their first post, i think they dont know the lua command structure verry wellYes, I know, but why? Why would you need to write commands on multiple lines? There's no programs with a lot of/long arguments.
Posted 03 August 2012 - 10:14 PM
From the sounds of it they are in the lua prompt.
Instead of typing lua from the terminal and then doing your code type edit program_name. Enter your code, this will work a lot like a text editor. Hit ctrl, select save, then exit and type program_name from the normal promt to run the script.
Instead of typing lua from the terminal and then doing your code type edit program_name. Enter your code, this will work a lot like a text editor. Hit ctrl, select save, then exit and type program_name from the normal promt to run the script.