I wrote a rough implementation of the classic game snake for the terminal, written in C.

This uses ANSI control characters directly, without a library like ncurses.

Source