I want similar option like getche() in C. How can I read just a single character input from command line?
getche()
Using read command can we do it?
read
In bash, read can do it:
read -n1 ans
1.4m articles
1.4m replys
5 comments
57.0k users