aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-08-25 15:57:49 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-08-25 15:59:03 +0200
commitdb1d45037cf923bf470a8581d5546bef8247c756 (patch)
tree4537c9cde61ef5d7680b869518dad8b64878aa1d /src/libutil/util.hh
parentec9e0c03c398ca48fba81fd6e870dc396da01b08 (diff)
Handle SIGWINCH
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 7340ca6c7..30e3c0df1 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -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();
+
+
}