h3rald / min

A small but practical concatenative programming language and shell
https://min-lang.org
MIT License
311 stars 23 forks source link

Unbuffered input from STDIN #59

Closed agentofuser closed 4 years ago

agentofuser commented 4 years ago

The gets symbol reads one line at a time. Is there a way to get unbuffered input immediately on every keystroke? Like if I want to write a repl in min itself and handle keybindings. Thanks!

h3rald commented 4 years ago

That's definitely doable, I'll expose nimline's getchr and putchr methods, those should help with your use case 😄

agentofuser commented 4 years ago

Perfect, thank you! :)