a carrot indicator like java does would also be a nice addition.<br><br><div><span class="gmail_quote">On 1/8/07, <b class="gmail_sendername">Walter Moreira</b> <<a href="mailto:gwallter@gmail.com">gwallter@gmail.com</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Haskellers. A short while ago I asked about the possibility to have<br>
the output of ghci in color. Thanks to Donald Stewart who set up a<br>wiki page to continue the attempt. Other people suggested HsColour and<br>GUI's (thanks too). I'm not so interested in highlighting the snippets
<br>of code which ghci displays, but to use different colors for the<br>different types of output: different colors for the prompt, input,<br>warnings, exceptions, normal output, etc.<br><br>Are any of these ideas viable?:
<br><br>1. Hack the code of Interactive.hs in the GHC distribution and<br> substitute the calls to 'putStr[Ln]' by some thin wrapper which can<br> write with colors, according to a command line option (--color or
<br> --colour, for example), maybe using HsColour. This looks easy<br> enough and I'd be willing to do it, but it's intrusive, and one has<br> to mantain a different version of ghci in parallel with the main
<br> ghci.<br><br>2. Use GHC as library (from 6.6 on) and write a similar application as<br> ghci, with more emphasis in the 'interactive' part of the name (in<br> the same way as the relation between Python and the IPython
<br> extended shell). This is more work and more duplicate efforts, but<br> it may be worthly, perhaps.<br><br>3. Write a wrapper which communicates with ghci via pipes. I read some<br> attempts about this somewhere, and people suggested an approach as
<br> in #2.<br><br>I haven't mentioned the GUI applications, since I would like to just<br>have something in the spirit of ghci (command line oriented), but with<br>colors or with configurable output. Which approach do you people
<br>think it is best?<br><br>Sorry for the long message. Cheers,<br>Walter<br>_______________________________________________<br>Haskell-Cafe mailing list<br><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org
</a><br><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br></blockquote></div><br>