anthilus 0.1.0

Anthilus is a lightweight file manager for you Linux terminal!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <sys/ioctl.h>

int terminal_width()
{
	struct winsize size;
	ioctl(0, TIOCGWINSZ, &size);
	return size.ws_col;
}

int terminal_height()
{
	struct winsize size;
	ioctl(0, TIOCGWINSZ, &size);
	return size.ws_row;
}