Is it possible to read a single character from standard input (or the tty directly), without waiting for a newline character?
If I do io:get_chars(standard_io, [], 1), I get the next character, but the problem is that a whole line is collected before the function call returns with that single character. Is it possible to consume every keypress from the stdin (including the arrow keys), without waiting for the enter at the end of the line?