Here’s a snake game written in odin using my ncurses alternative which is also written in Odin:
This library assumes that your terminal supports ANSI escape codes (most terminals in use nowadays support it) and for mouse input uses SGR escape codes.
Right now the library works only on POSIX systems and is missing a few things on the input handling part (mostly missing key press detection on the ANSI escape parser that I’m slowly adding). The only thing missing for windows support is the syscalls necessary to change the terminal mode.
The repo is here: GitHub - RaphGL/TermCL: Terminal Control Library for Odin