@requiem your linux system shouuuld come with X11, otherwise try SDL2? It's not much more complicated, here's a super barest-of-bones examples for SDL2:

wiki.xxiivv.com/site/ansi_c.ht

Otherwise, this could be a good place to start too with sdl:

git.sr.ht/~rabbits/dotgrid