1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-04 07:11:47 +02:00

Implement updateWindowSize for Windows

This commit is contained in:
PoweredByPie 2024-05-18 16:05:14 -07:00
parent beb3c2bc7a
commit 53f0c44d6c
2 changed files with 13 additions and 6 deletions

View file

@ -21,16 +21,12 @@ std::string filterANSIEscapes(std::string_view s,
bool filterAll = false,
unsigned int width = std::numeric_limits<unsigned int>::max());
#ifndef _WIN32
/**
* Recalculate the window size, updating a global variable. Used in the
* `SIGWINCH` signal handler.
*/
void updateWindowSize();
#endif
/**
* @return the number of rows and columns of the terminal.
*