るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.031秒)
トップページ > クエリ:-[x] > クエリ:on[x] > ライブラリ:io/console[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

クラス

キーワード

検索結果

IO.console -> File | nil (6202.0)

端末を File オブジェクトで返します。

...端末を File オブジェクトで返します。

require "io/console"
IO.console # => #<File:/dev/tty>

プロセスが端末から切り離された状態で実行すると nil を返します。

戻り値はプラットフォームや環境に依存します。...

IO.console_size -> [Integer, Integer] (6201.0)

端末のサイズを [rows, columns] で返します。

...端末のサイズを [rows, columns] で返します。

io/console
が利用できない場合は、IO.default_console_size
の値を返します。

@see IO.default_console_size...

IO.default_console_size -> [Integer, Integer] (6201.0)

デフォルトの端末のサイズを [rows, columns] で返します。

デフォルトの端末のサイズを [rows, columns] で返します。