[Prev][Next][Index][Thread]

# Re: My wish: built-in prompt support

- Date: Fri, 9 Aug 1996 12:24:31 PDT
- From:
- cc: moo-cows.PARC@xerox.com
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- References: <96Aug9.084615pdt."15291(4)"@alpha.xerox.com>

    Ahn Jin-su wrote:
    >
    > I think there's some need for built-in prompt support, for various reasons
    > (printing stat for rpg MOO, verb name and line number for in-MOO editor,
    > for example).
    >
    > I wrote patches for it several times myself, for the server is continuosly
    > evolving, and the last one was completely rewritten from scratch and finished
    > last night. It seems I wrote the patches for every versions of server since
    > 1.7.8p4. (sigh)

    1.8.0 allows you to output a 'prompt' without a server hack.

    If you

    set_connection_option(player,"binary",1);
    notify(player,"This is a prompt>");
    set_connection_option(player,"binary",0);

    When connections are in "binary" mode, notify() does not automatically
    append an end-of-line character.  The result of the above code is the
    player will see "This is a prompt>" and the cursor will be located
    immediately after the ">", not on a new line.

    Getting the server to print the prompt after every command typed is not
    difficult.

References:

- My wish: built-in prompt support

- From: Ahn Jin-su <jsahn@ee.snu.ac.kr>

- Prev: Re: My wish: built-in prompt support
- Next: Re: My wish: built-in prompt support
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index