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

Search the Community

Showing results for tags 'io.read()'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • OpenComputers
    • Announcements
    • Feedback
    • IRC
  • Code Central
    • Support
    • Showcase
    • Tutorials
  • Addons & More
    • Addons Mods
    • Architectures
    • OpenEngineering Task Force
  • General
    • Lounge
    • Forum Games
    • Showcase
    • Servers
  • Archives
    • Public Archives

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Minecraft


GitHub


IRC


Fediverse ID


Location


Interests

Found 2 results

  1. In my program, when it ends it crashes the entire computer, what might be happening here? io = require("io") io.write("Press w") while true do input = io.read() if input == "w" then break else io.write("Wrong key!") end io.write("Correct key!") The Error is: /bin/sh.lua:14: attempt to index field 'stdin' (a nill value) stack traceback: init:18: in function <init:17> (...tail calls...) /bin/sh.lua:14: in main chunk [C]: in function 'xpcall' machine:798: in f
  2. Hi Is there any way to stop io.read() or term.read() once it was called without the user pressing enter? (for example automatically abort after 30sec?) Is there another way to get the input that allows it? Thanks for the help
×
×
  • Create New...

Important Information

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