Hello everyone,
I’ve just barely started with Lua. I fell instantly in love with Sublime, but I ran into one nagging thing. I have searched, seen it asked, but found no working solution.
When using io.read(), CTRL + B shows nothing for the input of the Player after entering a name when prompted. It’s just moves to a blank line and nothing is printed to the screen. Below is the code I am using; also I am using lua52.
print(“What is your name Player?”)
local Player = io.read()
print("Welcome to the game " … Player)
Any help would be greatly appreciated.
EDIT: Sorry. I forgot to mention that the code runs perfectly in ZeroBrane and from a console.