Printing in Color

This is a discussion on Printing in Color within the lisp forums in Programming Languages category; Can we use 'print' or 'format' to print(on standard output) in color? (Allegro CL on windows) -Tushar...

Go Back   Application Development Forum > Programming Languages > lisp

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 01-17-2008, 01:58 AM
000.tushar@gmail.com
Guest
 
Default Printing in Color

Can we use 'print' or 'format' to print(on standard output) in color?
(Allegro CL on windows)

-Tushar
Reply With Quote
  #2  
Old 01-17-2008, 04:26 AM
John Thingstad
Guest
 
Default Re: Printing in Color

På Thu, 17 Jan 2008 07:58:15 +0100, skrev 000.tushar@gmail.com
<000.tushar@gmail.com>:

> Can we use 'print' or 'format' to print(on standard output) in color?
> (Allegro CL on windows)
>
> -Tushar


The same way you would print in color to *standard-output*/stdout in any
language.
It totally depends what *standard output* is connected to.

First console options:

Under windows 95/98 there is a ANSI driver you can run under command that
allows the use of color. A devive=ansi.sys needs to be in config.sys. (You
can look up 'ANSI color')

I guess you have NT or higher which doesn't support a ANSI driver.
There is batch command @color which might work. (you can look up 'cmd
color')

Now the REPL options:

For the ACL REPL I don't know. Try the documentation.
For the SLIME/ilisp REPL (lookup 'EMACS color'')

--------------
John Thingstad
Reply With Quote
  #3  
Old 01-17-2008, 06:09 AM
Pascal J. Bourguignon
Guest
 
Default Re: Printing in Color

"000.tushar@gmail.com" <000.tushar@gmail.com> writes:

> Can we use 'print' or 'format' to print(on standard output) in color?
> (Allegro CL on windows)


Try: http://www.informatimago.com/~pjb/ansi-test
with: http://darcs.informatimago.com/darcs...p/ecma048.lisp

--
__Pascal Bourguignon__
mailtoascal.bourguignon@anevia.com
http://www.anevia.com
Reply With Quote
  #4  
Old 01-17-2008, 09:34 AM
vanekl
Guest
 
Default Re: Printing in Color

On Jan 17, 6:58*am, "000.tus...@gmail.com" <000.tus...@gmail.com>
wrote:
> Can we use 'print' or 'format' to print(on standard output) in color?
> (Allegro CL on windows)
>
> -Tushar


This was discussed some about two weeks ago on this list. You may find
something of worth there, too. It had "color" in the title.
--
Roses are red,
Violets are blue,
Pay my ass.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 11:09 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.