[RFC] ColorD

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Oct 26 07:42:57 PDT 2012


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.


T

-- 
IBM = I'll Buy Microsoft!


More information about the Digitalmars-d mailing list