Color your terminal's output

Jens Mueller jens.k.mueller at gmx.de
Sat Oct 8 04:34:37 PDT 2011


Nick Sabalausky wrote:
> "Trass3r" <un at known.com> wrote in message news:op.v2zhq60v3ncmek at enigma...
> >> I see. You mean using curses if available and falling back to ISO/IEC
> >> 6429. So you think that supporting ISO/IEC 6429 terminals is too
> >> limited, aren't you?
> >
> > Well I personally only care about bash and Windoze console. I guess these 
> > support ISO 6429?!
> 
> Windows console windows don't, oddly enough. Even though MS-DOS did if you 
> had ANSI.SYS loaded.
> 
> And, maybe I'm wrong, but I would think that shell interpreter wouldn't have 
> anything to do with whether or not ANSI escape codes are avilable. Isn't 
> that more a matter of terminal program (ie, xterm, vs...umm, all those 
> others...)

Yes. The shell has nothing to do with it. As far as I understand it even
ncurses uses terminfo to send the appropriate escape sequences. I just
will load the library at runtime. But I wonder what's the general
interest and whether it makes sense as a module.

Jens


More information about the Digitalmars-d mailing list