diff options
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r-- | libbb/xfuncs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 0c9969640..206edb4a0 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -270,6 +270,12 @@ int FAST_FUNC get_terminal_width_height(int fd, unsigned *width, unsigned *heigh | |||
270 | *width = wh_helper(win.ws_col, 80, "COLUMNS", &err); | 270 | *width = wh_helper(win.ws_col, 80, "COLUMNS", &err); |
271 | return err; | 271 | return err; |
272 | } | 272 | } |
273 | int FAST_FUNC get_terminal_width(int fd) | ||
274 | { | ||
275 | unsigned width; | ||
276 | get_terminal_width_height(fd, &width, NULL); | ||
277 | return width; | ||
278 | } | ||
273 | 279 | ||
274 | int FAST_FUNC tcsetattr_stdin_TCSANOW(const struct termios *tp) | 280 | int FAST_FUNC tcsetattr_stdin_TCSANOW(const struct termios *tp) |
275 | { | 281 | { |