newLISP Fan Club

Forum => newLISP in the real world => Topic started by: newdep on July 20, 2004, 12:25:19 PM

Title: Newlisp prompt enhancement
Post by: newdep on July 20, 2004, 12:25:19 PM
Hello Lutz,



As for the linux users we could enhance the prompt a little

for the users when in prompt mode.



Like we have (trace-highlight) for tracing i was thinking

of a (prompt-highlight). enhances the ">" whith a colour or

even with a time-prompt or whatever function is possible in

the prompt...



Norman
Title:
Post by: newdep on April 11, 2008, 01:26:33 AM
Ill give it another try..





Lutz, is it possible to give the default prompt "> " a color?

(<context><prompt>)



For all those linux-console users it would just cheer it up more..(just a tweak ;-)



I dont get it working from here seems snprintf does not handle ANSI by default?
Title:
Post by: newdep on April 11, 2008, 02:47:45 AM
here it is ... though? could trace-highlight be used to set it?







if(traceFlag)

        snprintf(string, 31, "%s %d> ", context, recursionCount);

else

/*      snprintf(string, 31, "%s> ", context ); */

        snprintf(string, 31, "33[1;36m%s33[1;33m> 33[0m", context);