Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

IO#check_winsize_changed

() { () -> void } -> self
io.check_winsize_changed { ... } → io

Yields while console input events are queued.

Deprecated because it discards queued input events other than window buffer size changes. Use IO#console_input_events instead to preserve all events.

This method is Windows only.

You must require ‘io/console’ to use this method.

See also #binmode? #clear_screen #binmode #close also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0