cpp-terminal 1.0.0
Small C++ library for writing multiplatform terminal applications
Loading...
Searching...
No Matches
sigwinch.hpp
Go to the documentation of this file.
1/*
2* cpp-terminal
3* C++ library for writing multi-platform terminal applications.
4*
5* SPDX-FileCopyrightText: 2019-2024 cpp-terminal
6*
7* SPDX-License-Identifier: MIT
8*/
9
10#pragma once
11
12#include <cstdint>
13
14namespace Term
15{
16namespace Private
17{
18
20{
21public:
22 static void registerSigwinch();
23 static void blockSigwinch();
24 static void unblockSigwinch();
25 static bool isSigwinch(const std::int32_t& file_descriptor = -1) noexcept;
26 static std::int32_t get() noexcept;
27
28private:
29 static std::int32_t m_fd;
30};
31
32} // namespace Private
33} // namespace Term
static std::int32_t get() noexcept
Definition sigwinch.cpp:38
static void registerSigwinch()
Definition sigwinch.cpp:49
static std::int32_t m_fd
Definition sigwinch.hpp:47
static bool isSigwinch(const std::int32_t &file_descriptor=-1) noexcept
Definition sigwinch.cpp:85
static void unblockSigwinch()
Definition sigwinch.cpp:75
static void blockSigwinch()
Definition sigwinch.cpp:65
Definition args.cpp:13