Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
RonaldReagon123

How do I navigate the terminal

Question

2 answers to this question

Recommended Posts

  • 0

The easiest way to fix your problem is to upgrade your graphics card to either tier 2 or 3 in order to increase the resolution and thus allow more characters to be displayed on your screen.

Another fix would be to type this code in your terminal:

os.sleep(0.5)  for k,v in pairs(component.robot) do print(k,v) event.pull("key_up")  end

 This will print out each entry of the table and the value it's stored under every time you press and release a key, and would probably work for any other table.

You could also check out the code in the following pastebin [https://pastebin.com/5qB1UkZf], or run it directly in your OpenComputer computer with pastebin get and as input type robot.

If you have other questions or if you want me to explain something about what I wrote, what the individual functions do or if I didn't answer your question feel free to send me a private message. I feel OpenComputers is very poorly documented, at least for people with no experience in programming prior to ComputerCraft or OpenComputers like myself, so I'd be more than happy to help you out with the few things I do understand.
 

Edited by _Jacques
New working code added
Link to post
Share on other sites
  • 0

Our `components` command line program can help too. It lists components attached to the system, but you can pass an argument to filter the results to components that match the name you ask for, and that can be a partial match too

`components file`

will list all `filesystem` components. Also, you can get the "long" output, which prints the methods and method documentation string

`component robot -l`

Which prints the robot component and its methods

 

Now, this can fill up more than a screen's worth of output, you can pipe to `less` and scroll up and down to read the text

`component robot -l | less`

 

On older versions of OpenOS, our `less` program was a bit buggy. Sorry about that.  Update if you can, it works very well now. If you are unable to update, you can also redirect the output of commands to a file for reading with `edit`

`component robot -l > /tmp/robot-methods.lua`

And then open the file for reading:

`edit /tmp/robot-methods.lua`

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.