Porytiles
Loading...
Searching...
No Matches
terminal_width.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4
5namespace porytiles {
6
24[[nodiscard]] std::size_t resolve_terminal_width(int fd, std::size_t fallback = 80);
25
26} // namespace porytiles
std::size_t resolve_terminal_width(int fd, std::size_t fallback=80)
Resolves the column width to use for wrapping diagnostic output on fd.