Re: [PROBABLY IDIOTIC] Prompt System

From: George Greer (greerga@circlemud.org)
Date: 01/22/00


On Sat, 22 Jan 2000, Phillip A Ames wrote:

>char *make_prompt(struct descriptor_data *d)
>{
[...]
>  char *prompt; // actual prompt string
[...]
>  if (d->str)
>    strcpy(prompt, "] ");
>
>  else if (d->showstr_count)
>    sprintf(prompt, "\r\n[ Return to continue, (q)uit, (r)efresh, (b)ack,
>or page number (%d/%d) ]",
>            d->showstr_page, d->showstr_count);
>  else if (!d->connected) {
>    log("!d->connected");
>    *prompt = '\0';
[...]

etc, etc, etc.

--
George Greer            | Shirak's CircleMUD for Windows help
greerga@circlemud.org   | http://shirak.circlemud.net/


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT