Is there a way for the variable var to take the value after typing one character in redline (Char?) without pressing Enter? Something like
var = readline (:: Char?)
(I am doing a quick one-touch input interface)
Paul
Is there a way for the variable var to take the value after typing one character in redline (Char?) without pressing Enter? Something like
var = readline (:: Char?)
(I am doing a quick one-touch input interface)
Paul
I think just reading a char from stdin should work.
Like read(stdin, Char)
julia> var=read(stdin, Char)
aaa
'a': ASCII/Unicode U+0061 (category Ll: Le
julia> aa
ERROR: UndefVarError: aa not defined
After typing one char nothink
It is necessary for only one character to have the same reaction as for the character(s) + Enter now.
typing one char = automatlicly to closing function.