README.md in winsize-1.0.0 vs README.md in winsize-1.0.1

- old
+ new

@@ -47,15 +47,15 @@ size = Winsize.new(32, 160) # or # size = $stdout.winsize -in, out, pid = PTY.spawn +input, output, pid = PTY.spawn -out.winsize = winsize +output.winsize = size # or -# out.winsize = 32, 160 +# output.winsize = 32, 160 ``` You may want to combine `winsize` and catching the [`SIGWINCH`](http://en.wikipedia.org/wiki/SIGWINCH) signal so you update something that your terminal has been resized. @@ -65,6 +65,8 @@ puts "Terminal size is #{$stdout.winsize.columns}x#{$stdout.winsize.rows}" Signal.trap "WINCH" do puts "Terminal resized to #{$stdout.winsize.columns}x#{$stdout.winsize.rows}" end + +loop { sleep(10) } ``` \ No newline at end of file