Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

IO#ioctl

ios.ioctl(integer_cmd, arg) → integer

Provides a mechanism for issuing low-level commands to control or query I/O devices. Arguments and results are platform dependent. If arg is a number, its value is passed directly. If it is a string, it is interpreted as a binary sequence of bytes. On Unix platforms, see ioctl(2) for details. Not implemented on all platforms.

See also #internal_encoding #ioflush #inspect #isatty also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0