A primitive minesweeper implementation in C using terminal escapes