[Haskell-cafe] Windows console

Max Bolingbroke batterseapower at hotmail.com
Sat Sep 13 05:57:32 EDT 2008

2008/9/13 Brandon S. Allbery KF8NH <allbery at ece.cmu.edu>:
>> 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.)

Interesting information. I'll look into adding this to my package then: cheers!


More information about the Haskell-Cafe mailing list