Index
ncurses-minesweeper
/
82ddf89
Terminal game of Minesweeper, implemented in C with ncurses.
Download
|
Refs
|
Commit Log
|
Files
|
README
|
LICENSE
Latest Commit
{#}
Time
Hash
Subject
Author
#
(+)
(-)
GPG?
12
12 Sep 2020 16:19
9e98a79
Create game loop and page structure
Josh Stockin
1
11
0
G
Blob @
ncurses-minesweeper
/
src
/
draw
/
winsize.c
text/plain
250 bytes
download raw
1
#include <ncurses.h>
2
#include <stdio.h>
3
#include <stdlib.h>
4
5
#include
"text.h"
6
7
int
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