I know about io.stdin:read, but i want to have something equivalent to C “getchar”.
I know about io.stdin:read, but i want to have something equivalent to C getchar.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
read()takes a parameter, one of which is the number of characters to read. If you callread(1)then you should get the behavior you are looking for.