Rutex 0 Posted September 26, 2015 Share Posted September 26, 2015 Hello all. Is there way to hide any input? like mask with * io.read() ? Quote Link to post Share on other sites
0 TYKUHN2 2 Posted September 27, 2015 Share Posted September 27, 2015 Computercraft led me astray. I assumed read() was a typical function it was actually io.read() Regardless you want term.read({}, true, {}, "*") or similar. I am sure some of those arguments you can leave out but from the wiki I don't think you can. Quote Link to post Share on other sites
0 squall2044 0 Posted December 13, 2016 Share Posted December 13, 2016 What you are looking for would go a little like this: local t = require("term") local pass = "12345" if text.trim(t.read({}, {}, {}, "*") == pass then ###code goes here### else ###more code here### end this came from elsewhere and I have not had a chance to test it as I am at work but putting this at the top of your code local e = require("event") e.shouldInterrupt = function() return false end should prevent a ctrl+alt+c interrupt Quote Link to post Share on other sites
Hello all.
Is there way to hide any input? like mask with * io.read() ?
Link to post
Share on other sites