aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c6
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}
273int 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
274int FAST_FUNC tcsetattr_stdin_TCSANOW(const struct termios *tp) 280int FAST_FUNC tcsetattr_stdin_TCSANOW(const struct termios *tp)
275{ 281{