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:
parent
beb3c2bc7a
commit
53f0c44d6c
2 changed files with 13 additions and 6 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue