master ohmu/fastfetch-openbsd / src / detection / terminalsize / terminalsize.h
ohmu  ·  2026-10-15
 1#pragma once
 2
 3#include "fastfetch.h"
 4#include "modules/terminalsize/option.h"
 5
 6typedef struct FFTerminalSizeResult {
 7    uint16_t rows;
 8    uint16_t columns;
 9    uint16_t width;
10    uint16_t height;
11} FFTerminalSizeResult;
12
13// `fastOnly` avoids terminal query/response sequences and is intended for startup layout decisions.
14bool ffDetectTerminalSize(FFTerminalSizeResult* result, bool fastOnly);