[RFC] ColorD

Jens Mueller jens.k.mueller at gmx.de
Fri Oct 26 07:46:26 PDT 2012


H. S. Teoh wrote:
> On Fri, Oct 26, 2012 at 08:08:36AM +0200, Robik wrote:
> > On Friday, 26 October 2012 at 01:35:43 UTC, Adam D. Ruppe wrote:
> > >On Thursday, 25 October 2012 at 22:27:52 UTC, Jens Mueller wrote:
> > >>>5. setting the contents of the title bar
> > >>The title bar of what?
> > >
> > >Here's how you do it on xterm:
> > >
> > >writefln("\033]0;%s\007", title);
> > >
> > 
> > Yeah, the problem is it does not work in all terminals.
> 
> The correct solution is to examine the TERM environment variable to find
> out what kind of terminal it is, and then use escape sequences specific
> to that terminal.

Or use a library that does this? There is terminfo. Don't know whether
this is supported on all Posix platforms.
I think the terminal's capabilities are stored in some files on the
system.

Jens


More information about the Digitalmars-d mailing list