4件ヒット
[1-4件を表示]
(0.008秒)
別のキーワード
検索結果
先頭4件
-
Readline
:: HISTORY . push(*string) -> self (307.0) -
ヒストリの最後に string で指定した文字列を追加します。複数の string を指定できます。 self を返します。
...る。
require "readline"
Readline::HISTORY.push("foo")
p Readline::HISTORY[-1] #=> "foo"
例: "foo"、"bar"を追加する。
require "readline"
Readline::HISTORY.push("foo", "bar")
p Readline::HISTORY[-1] #=> "bar"
p Readline::HISTORY[-2] #=> "foo"
@see Readline::HISTORY.<<... -
Readline (43.0)
-
GNU Readline によるコマンドライン入力インタフェースを提供するモジュールです。
...GNU Readline によるコマンドライン入力インタフェースを提供するモジュールです。
GNU Readline 互換ライブラリのひとつである Edit Line(libedit) もサポートしています。
* https://directory.fsf.org/wiki/Readline
* https://thrysoee.dk/editline/......ne.readline を使用してユーザからの入力を取得できます。
このとき、 GNU Readline のように入力の補完や
Emacs のようなキー操作などができます。
例: プロンプト"> "を表示して、ユーザからの入力を取得する。
require 'readline'......while buf = Readline.readline("> ", true)
print("-> ", buf, "\n")
end
ユーザが入力した内容を履歴(以下、ヒストリ)として記録することができます。
定数 Readline::HISTORY を使用して入力履歴にアクセスできます。
例えば、Readline::HISTORY.t... -
Readline
. emacs _ editing _ mode -> nil (25.0) -
編集モードを Emacs モードにします。デフォルトは Emacs モードです。
...Emacs モードにします。デフォルトは Emacs モードです。
Emacs モードの詳細は、 GNU Readline のマニュアルを参照してください。
* http://www.gnu.org/directory/readline.html
@raise NotImplementedError サポートしていない環境で発生します。... -
Readline
. vi _ editing _ mode -> nil (25.0) -
編集モードを vi モードにします。 vi モードの詳細は、GNU Readline のマニュアルを参照してください。
...編集モードを vi モードにします。
vi モードの詳細は、GNU Readline のマニュアルを参照してください。
* http://www.gnu.org/directory/readline.html
@raise NotImplementedError サポートしていない環境で発生します。...