diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-29 22:10:14 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-29 22:10:14 +0200 |
commit | 8eb105e9e9ce7b5364e1377a626753879d1870ff (patch) | |
tree | 4d885d4fe7e50573cbdc67a5e8b40a4d4bb17aae | |
parent | 6cce9dadc30aebf60233b4080a65d907cc31aa97 (diff) | |
download | busybox-w32-wip.tar.gz busybox-w32-wip.tar.bz2 busybox-w32-wip.zip |
termios.c: get_terminal_width_hey dupliwip
-rw-r--r-- | win32/termios.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win32/termios.c b/win32/termios.c index 36c4ea526..c56d58fd0 100644 --- a/win32/termios.c +++ b/win32/termios.c | |||
@@ -230,9 +230,10 @@ static int get_wincon_width_height(const int fd, int *width, int *height) | |||
230 | return 0; | 230 | return 0; |
231 | } | 231 | } |
232 | 232 | ||
233 | |||
234 | #if ENABLE_FEATURE_CYGWIN_TTY | ||
233 | int FAST_FUNC get_terminal_width_height(int fd, unsigned *width, unsigned *height) | 235 | int FAST_FUNC get_terminal_width_height(int fd, unsigned *width, unsigned *height) |
234 | { | 236 | { |
235 | #if ENABLE_FEATURE_CYGWIN_TTY | ||
236 | int tty = fd_to_tty(fd); | 237 | int tty = fd_to_tty(fd); |
237 | struct shared_info *si = get_shared_info(); | 238 | struct shared_info *si = get_shared_info(); |
238 | 239 | ||
@@ -243,9 +244,9 @@ int FAST_FUNC get_terminal_width_height(int fd, unsigned *width, unsigned *heigh | |||
243 | *height = si->tty.ttys[tty].tty_min.winsize.ws_row; | 244 | *height = si->tty.ttys[tty].tty_min.winsize.ws_row; |
244 | return 0; | 245 | return 0; |
245 | } | 246 | } |
246 | #endif | ||
247 | return get_wincon_width_height(fd, width, height); | 247 | return get_wincon_width_height(fd, width, height); |
248 | } | 248 | } |
249 | #endif | ||
249 | 250 | ||
250 | int wincon_read(int fd, char *buf, int size) | 251 | int wincon_read(int fd, char *buf, int size) |
251 | { | 252 | { |