summaryrefslogtreecommitdiffstats
path: root/build/has/tcgetwinsize.c
blob: d25d12b53076e71a07a783982dfcbfb5210f6d0a (plain)
1
2
3
4
5
6
7
8
9
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD

#include <termios.h>

int main(void) {
	struct winsize ws;
	return tcgetwinsize(0, &ws);
}