aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorJuan Cespedes <cespedes@debian.org>2009-04-07 13:10:08 +0200
committerJuan Cespedes <cespedes@debian.org>2009-04-07 13:10:08 +0200
commit43739a69d0fb63011609af50f758fbe4734e0c67 (patch)
tree2d15099466a84f4e63c5344f3a848c376e90c1ae /options.c
parente2023f721b66db48cc8a0f4ab6519460093c2cf1 (diff)
downloadltrace-43739a69d0fb63011609af50f758fbe4734e0c67.tar.gz
Documentation, small fixes
Diffstat (limited to 'options.c')
-rw-r--r--options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/options.c b/options.c
index f230d1b..04e55a8 100644
--- a/options.c
+++ b/options.c
@@ -195,6 +195,8 @@ guess_cols(void) {
}
} else if (ioctl(1, TIOCGWINSZ, &ws) != -1 && ws.ws_col > 0) {
options.align = ws.ws_col * 5 / 8;
+ } else if (ioctl(2, TIOCGWINSZ, &ws) != -1 && ws.ws_col > 0) {
+ options.align = ws.ws_col * 5 / 8;
}
}