haskell-cafe@haskell.org
[Top] [All Lists]

Re: [Haskell-cafe] Windows console

Subject: Re: [Haskell-cafe] Windows console
From: "Brandon S. Allbery KF8NH"
Date: Sat, 13 Sep 2008 01:02:04 -0400
On 2008 Sep 12, at 22:29, Curt Sampson wrote:
On 2008-09-12 20:29 +0100 (Fri), Andrew Coppin wrote:

Looks like the only thing it doesn't do is let you change the title
on the console window. (Because, obviously, that's only possible on
Windows.)

Right. Unless you send an ^[^H]0;foo^G sequence (^[ being ESC) to your
xterm. You'll find that the title changes to "foo".


0 = both title and icon
1 = icon name
2 = titlebar text

Most X11 terminal emulators use the same protocol. (ISTR that dtterm doesn't, but I don't think most people care any more.) One other gotcha is that Terminal.app on Leopard (dunno about Tiger) treats 0, 1, 2 the same way so if you set the icon name after the title you end up with the icon name in the titlebar. (OSX uses the titlebar text as the icon name when minimized.)

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@xxxxxxxxx
system administrator [openafs,heimdal,too many hats] allbery@xxxxxxxxxxx
electrical and computer engineering, carnegie mellon university    KF8NH


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>