Re: Parsing color tokens?

From: Patrick O'Laughlin (pmolaughlin@home.com)
Date: 12/02/01


> For some odd reason our prompt code will not parse color tokens

If you're you probably need to move your color parsing function to be called
after the prompt making function in process_output (comm.c).

My code:

>  /* add a prompt */
>  strncat(i + 2, make_prompt(t), MAX_PROMPT_LENGTH);
>
>  /*
>   * now parse the color, and then send the output.  If this is an
'interruption',
>   * use the prepended CRLF, otherwise send the straight output sans CRLF.
>   */
>
>  if (t->character)
>    proc_color(i, (clr(t->character, C_NRM)));

pat o.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/24/03 PDT