zsh read user input

C++
vared -p 'User input: ' -c MYVAR

Source

Also in C++: