Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The article doesn't get into the few ways that terminals are more than normal stdio streams, but it turns out you can do a lot without knowing any of that. For one terminal library I made, I was able to avoid any extra native code in the process, using only unbuffered streams and a kludgey call out to `/bin/stty` to set raw input on that end. (Next time, I'd probably just do FFI to native code.) https://www.neilvandyke.org/racket/charterm/


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: