Add bt_common_get_term_size()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 4 Jul 2019 05:50:02 +0000 (01:50 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 6 Jul 2019 03:47:50 +0000 (23:47 -0400)
commit2c4f022eddb11b0fd4e164a6fdae169b008f2371
tree13382a002ae8d9d06c2a3d6ccb0e3c4dfbb66239
parent775d0390e38ada8228bbaeb21623715169c6b587
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.025734 seconds and 4 git commands to generate.