Add bt_common_get_term_size()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 4 Jul 2019 05:50:02 +0000 (01:50 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 15:53:34 +0000 (11:53 -0400)
commitc449a4d71b9ef8ce3e175dc6b70b27e58f41a684
treed46e12d34a5bf72cd2473a2193c3d81ba4388d4d
parenta38bcd4464444aabbe49ae3c0b64ee133a1c8778
Add bt_common_get_term_size()

Using ioctl() instead of the `COLUMNS` environment variable because
`COLUMNS` is in fact a shell variable which is not exported.

The function is not supported on Windows yet.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I84942830f0392ff1aca3e1aff54fffc534ddda05
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1621
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
src/common/common.c
src/common/common.h
This page took 0.026528 seconds and 4 git commands to generate.