diff options
author | Ron Yorston <rmy@pobox.com> | 2021-06-07 11:34:06 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-06-07 11:34:06 +0100 |
commit | abe872e2a0342357a5608342cb2892e94027b3e7 (patch) | |
tree | 297cdccf332fbb5e4eb31b1eac643180059f9b5f /libbb/xfuncs.c | |
parent | 1f33f42d7bcb019b268d938df643a7a785dc19ab (diff) | |
parent | 4d983dcddeee94892d3072e84c7c9a01d4696055 (diff) | |
download | busybox-w32-abe872e2a0342357a5608342cb2892e94027b3e7.tar.gz busybox-w32-abe872e2a0342357a5608342cb2892e94027b3e7.tar.bz2 busybox-w32-abe872e2a0342357a5608342cb2892e94027b3e7.zip |
Merge branch 'busybox' into merge
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 ef990118e..102b5a227 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -305,6 +305,12 @@ int FAST_FUNC get_terminal_width(int fd) | |||
305 | return width; | 305 | return width; |
306 | } | 306 | } |
307 | 307 | ||
308 | int FAST_FUNC is_TERM_dumb(void) | ||
309 | { | ||
310 | char *term = getenv("TERM"); | ||
311 | return term && strcmp(term, "dumb") == 0; | ||
312 | } | ||
313 | |||
308 | #if !ENABLE_PLATFORM_MINGW32 | 314 | #if !ENABLE_PLATFORM_MINGW32 |
309 | int FAST_FUNC tcsetattr_stdin_TCSANOW(const struct termios *tp) | 315 | int FAST_FUNC tcsetattr_stdin_TCSANOW(const struct termios *tp) |
310 | { | 316 | { |