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

Arrow keys left and right not working editing text.

Started by nfxs, 09 February 2013 - 12:22 PM
nfxs #1
Posted 09 February 2013 - 01:22 PM
Title: Arrow keys left and right not working editing text.

Hi i have a weird problem: In the command line, text editor or lua of a computer or turtle, my left and right arrow keys do not work. Which makes it not very easy to edit text.
Any suggestions on how to fix this problem? I'm pretty new to computerCraft, so any help would be greatly appreciated.
Best regards

nfxs
remiX #2
Posted 09 February 2013 - 02:28 PM
Have you tried restarting the CC Computer?

Do your left/right keys even work? xD

Never seen this problem ever.
Lyqyd #3
Posted 09 February 2013 - 02:45 PM
Do you have an unusual keyboard? Try opening up the Lua prompt and using an event reading loop to see what events are being thrown when you push those keys? Use this:

while true do print(table.concat({os.pullEvent()}, ", ")) end

Be sure to type it in correctly. :)/>
nfxs #4
Posted 10 February 2013 - 03:18 AM
i have tested it again, and executed the line you suggested, and… the the weird thing is, it worked the first time:
I started the game, got to a computer, typed lua, entered the text and while writing I tested the left and right arrow keys and they worked. After executing the line, the key id was printed for this keys to.
Then i thought ok, maybe it worked in lua but not the command line and text editor, so I stopped the program and edited some file, and… no working again. But i reopened lua and suddenly the keys won't work again in the lua command line. Executing the 'while' line didn't work anymore either.
I am really clueless. I closed the game and started it again, and the keys didn't work not even the first time.
Will try to reinstall everything… java, launcher… etc and will report.
Thanks for the responses