* io/console/console.c (winsize_row): should return actual screen
size, not buffer size. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1be8c17f0b
commit
80b9fb5a7b
@ -1,3 +1,8 @@
|
|||||||
|
Tue Jul 6 21:45:34 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* io/console/console.c (winsize_row): should return actual screen
|
||||||
|
size, not buffer size.
|
||||||
|
|
||||||
Tue Jul 6 08:35:58 2010 Aaron Patterson <aaron@tenderlovemaking.com>
|
Tue Jul 6 08:35:58 2010 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||||
|
|
||||||
* ext/dl/lib/dl/import.rb (handler): add a more helpful error message
|
* ext/dl/lib/dl/import.rb (handler): add a more helpful error message
|
||||||
|
@ -356,7 +356,7 @@ typedef CONSOLE_SCREEN_BUFFER_INFO rb_console_size_t;
|
|||||||
#define getwinsize(fd, buf) ( \
|
#define getwinsize(fd, buf) ( \
|
||||||
GetConsoleScreenBufferInfo((HANDLE)rb_w32_get_osfhandle(fd), (buf)) || \
|
GetConsoleScreenBufferInfo((HANDLE)rb_w32_get_osfhandle(fd), (buf)) || \
|
||||||
SET_LAST_ERROR)
|
SET_LAST_ERROR)
|
||||||
#define winsize_row(buf) (buf)->dwSize.Y
|
#define winsize_row(buf) ((buf)->srWindow.Bottom - (buf)->srWindow.Top + 1)
|
||||||
#define winsize_col(buf) (buf)->dwSize.X
|
#define winsize_col(buf) (buf)->dwSize.X
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user