1

Rebol でスクリプトを実行して のようprint {Hello}に言うと、システム バージョンの PRINT を呼び出すことになります。

>> bind? 'print
== make object! [
    system: make object! [
        product: 'core
        version: 2.101.0.2.5
        build: 22-Jan-2013/2:44:29
        platform: [
            Macintosh osx-x86
        ]
        license: {Copyright 2012 REB....

%repl-context.rスクリプトがあり、PRINT が何か他のことを行うコンテキストを定義したとしましょう。いくつかの連続したコマンドに対して、そのコンテキスト内でインタラクティブに実行するように REPL に依頼する方法はありますか?

4

2 に答える 2

2

There is a common repl console wrapper around to handle I/o redirects for StdIn StdOut.

I often use rlwrap from http://utopia.knoware.nl/~hlub/rlwrap/#rlwrap

It uses GNU readline lib

于 2013-05-25T14:43:01.413 に答える