xieite::term::screen_size()

Defined in header <xieite/io/term.hpp>

Returns the terminal size in row and columns represented as a xieite::pos {}.


Declaration

[[nodiscard]] xieite::pos screen_size() noexcept;


Example

int main() {
	xieite::term term;
	auto [row, col] = term.screen_size();
	std::println("{} {}", row, col);
}
Possible output:
53 197