diff options
author | Ron Yorston <rmy@pobox.com> | 2018-04-03 11:13:10 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-04-03 12:29:01 +0100 |
commit | 32f8569a99b948e810266608dd6e3bf9de611df5 (patch) | |
tree | ec891c62ed84879a99de960365cc4ba935e02c90 /include | |
parent | 4d8668e4b6bac0d7902dd677d540c700817b094b (diff) | |
download | busybox-w32-32f8569a99b948e810266608dd6e3bf9de611df5.tar.gz busybox-w32-32f8569a99b948e810266608dd6e3bf9de611df5.tar.bz2 busybox-w32-32f8569a99b948e810266608dd6e3bf9de611df5.zip |
win32: improvements to get_terminal_width_height
- move winansi_get_terminal_width_height from winansi.c to ioctl.c,
the only caller;
- check both stdout and stderr for a connection to a console;
- omit unnecessary code in get_terminal_width_height (because the
WIN32 implementation ignores the file descriptor).
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/mingw.h b/include/mingw.h index 2dba6c402..652652c3d 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -147,8 +147,6 @@ int winansi_getc(FILE *stream); | |||
147 | #define read winansi_read | 147 | #define read winansi_read |
148 | #define getc winansi_getc | 148 | #define getc winansi_getc |
149 | 149 | ||
150 | int winansi_get_terminal_width_height(struct winsize *win); | ||
151 | |||
152 | /* | 150 | /* |
153 | * stdlib.h | 151 | * stdlib.h |
154 | */ | 152 | */ |