Handle SIGWINCH

This commit is contained in:
Eelco Dolstra 2017-08-25 15:57:49 +02:00
parent ec9e0c03c3
commit db1d45037c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 39 additions and 8 deletions

View file

@ -349,6 +349,12 @@ bool hasSuffix(const string & s, const string & suffix);
std::string toLower(const std::string & s);
/* Escape a string that contains octal-encoded escape codes such as
used in /etc/fstab and /proc/mounts (e.g. "foo\040bar" decodes to
"foo bar"). */
string decodeOctalEscaped(const string & s);
/* Exception handling in destructors: print an error message, then
ignore the exception. */
void ignoreException();
@ -470,4 +476,8 @@ struct MaintainCount
};
/* Return the number of rows and columns of the terminal. */
std::pair<unsigned short, unsigned short> getWindowSize();
}