libzed 1.9.9
A general-purpose library for quick and simple data manipulation.
 
Loading...
Searching...
No Matches
terminal.hpp
1#pragma once
2
3#include <ostream>
4
5namespace z {
6namespace system {
7
11struct termsize {
13 int width;
15 int height;
16};
17
28termsize terminal(const std::ostream &stream) noexcept;
29
30} // namespace system
31} // namespace z
termsize terminal(const std::ostream &stream) noexcept
Get the current dimensions of the terminal.
A simple struct for storing terminal width and height.
Definition terminal.hpp:11
int width
The terminal width.
Definition terminal.hpp:13
int height
The terminal height.
Definition terminal.hpp:15