Please help. My prompt works, but when at the menu or logging in it
displays the "] " as part of the prompt. I'm not sure what I did wrong.
It used to show the [Return to continue bit. I got it not to display
that. When I write a message (i.e. mail or post) I still want it to show
the "] " but not any of the other places.
Thanx - S.D.
char *make_prompt(struct descriptor_data *d)
{
static char prompt[MAX_PROMPT_LENGTH];
/* Note, prompt is truncated at MAX_PROMPT_LENGTH chars (structs.h) */
if (d->str) {
if (d->character)
if (PLR_FLAGGED(d->character, PLR_WRITING) && STATE(d)==CON_PLAYING)
strcpy(prompt, "] "); /* strcpy: OK (for 'MAX_PROMPT_LENGTH >=
3') */
} else if (d->showstr_count && STATE(d)==CON_PLAYING) {
snprintf(prompt, sizeof(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 (STATE(d) == CON_PLAYING && !IS_NPC(d->character)) {
return prompt_str(d->character);
}
return (prompt);
}
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
| Newbie List: http://groups.yahoo.com/group/circle-newbies/ |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT