diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-21 06:01:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-21 06:01:29 +0000 |
commit | add8e1f5bb59dc8aa35d0493b19af3bebe4e4876 (patch) | |
tree | 2f56817754e219ed19087639fe1f3b650b0d1348 /io.c | |
parent | 0d8e684d3200763c49d114d5bdd943f78547c19b (diff) | |
download | ruby-add8e1f5bb59dc8aa35d0493b19af3bebe4e4876.tar.gz |
console.c: winsize on Windows
* ext/io/console/console.c (console_set_winsize): use handle for
writing. GetConsoleScreenBufferInfo seems failing on a handle
for reading.
* io.c: [DOC] update the example of IO#winsize to use $stdout
instead of $stdin, which does not work on Windows. a patch by
Jan Lelis <mail AT janlelis.de> at [ruby-core:68574].
[Bug #10986]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12078,7 +12078,7 @@ rb_readwrite_sys_fail(int writable, const char *mesg) * Example: * * require 'io/console' - * rows, columns = $stdin.winsize + * rows, columns = $stdout.winsize * puts "Your screen is #{columns} wide and #{rows} tall" */ |