I've been trying to make a simple password reader, but it just doesn't work...
Whenever I enter anything into the field, another character will be added (in the form of an extra line break if pwchar is nil). At first, I thought the "dobreak" parameter would help, but all that does is print "incorrect" on the same line as the password...
local term = require("term")local pw
term.write("enter password: ")
pw =(term.read(nil,false,nil,"*"))if pw =="1234"then
print("correct")else
print("incorrect")end
I've also tried other importing other peoples' password readers, to the same effect, so it has occurred to me that this may be a bug in OC. According to my modlist, the version I'm using is MC1.12.2-1.7.4.153. And I'm using the FTB direwolf20 1.12 modpack from twitch, if you need the rest of my modlist.
This has frustrated me for hours now... any help would be appreciated.
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.
I've been trying to make a simple password reader, but it just doesn't work...
Whenever I enter anything into the field, another character will be added (in the form of an extra line break if pwchar is nil). At first, I thought the "dobreak" parameter would help, but all that does is print "incorrect" on the same line as the password...
I've also tried other importing other peoples' password readers, to the same effect, so it has occurred to me that this may be a bug in OC. According to my modlist, the version I'm using is MC1.12.2-1.7.4.153. And I'm using the FTB direwolf20 1.12 modpack from twitch, if you need the rest of my modlist.
This has frustrated me for hours now... any help would be appreciated.
Link to post
Share on other sites