Index

ncurses-minesweeper / 5a2607d

Terminal game of Minesweeper, implemented in C with ncurses.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
1212 Sep 2020 16:199e98a79Create game loop and page structureJosh Stockin1110G

Blob @ ncurses-minesweeper / src / draw / winsize.c

text/plain250 bytesdownload raw
1#include <ncurses.h>
2#include <stdio.h>
3#include <stdlib.h>
4
5#include "text.h"
6
7int draw_winsize() {
8 size_t buffer_size = snprintf(NULL, 0, "%ix%i", COLS, LINES);
9 mvprintw(LINES - 1, COLS - buffer_size, "%ix%i", COLS, LINES);
10 return 0;
11}
12