projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add bt_common_get_term_size()
[babeltrace.git]
/
src
/
common
/
common.h
diff --git
a/src/common/common.h
b/src/common/common.h
index 0f2736f00642782a3588b7675b94e7c97e136342..1b952913f3fa96e1f94f8be41d89b1de4eaca5bf 100644
(file)
--- a/
src/common/common.h
+++ b/
src/common/common.h
@@
-348,6
+348,13
@@
BT_HIDDEN
GString *bt_common_fold(const char *str, unsigned int total_length,
unsigned int indent);
GString *bt_common_fold(const char *str, unsigned int total_length,
unsigned int indent);
+/*
+ * Writes the terminal's width to `*width`, its height to `*height`,
+ * and returns 0 on success, or returns -1 on error.
+ */
+BT_HIDDEN
+int bt_common_get_term_size(unsigned int *width, unsigned int *height);
+
/*
* Wraps read() function to handle EINTR and partial reads.
* On success, it returns `count` received as parameter. On error, it returns a
/*
* Wraps read() function to handle EINTR and partial reads.
* On success, it returns `count` received as parameter. On error, it returns a
This page took
0.028006 seconds
and
4
git commands to generate.