From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b6ac,5f3062e7177e9992 X-Google-Attributes: gid10b6ac,public X-Google-Thread: 1164f8,5f3062e7177e9992 X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,5f3062e7177e9992 X-Google-Attributes: gid10b612,public From: Fred Kleinsorge Subject: Re: Retitle a X/Motif (dxterm) window on the fly Date: 1996/09/11 Message-ID: <323725AE.359037BA@star.enet.dec.com>#1/1 X-Deja-AN: 180044544 distribution: inet references: <32373F3E.21AC@wpllabs.com> content-type: text/plain; charset=us-ascii organization: OpenVMS Engineering mime-version: 1.0 newsgroups: comp.sys.dec,comp.unix.ultrix,comp.windows.x.motif x-mailer: Mozilla 2.02b1 (X11; I; DEC 3000 - M700 ) Laurence G. Esmonde Jr. wrote: > > The X-Window's User's Guide (Vol 3) states, on page 638 - xterm control > sequences -- that the sequence > > ] 2 ; ^G > > will change the title of the window at the top of the screen. I > generated the sequence at the prompt by typing "echo $esc']2;Test > Title^G'". I did this with "xterm" and it worked like a champ. When I > tried the same thing on "dxterm" however, it just hung the terminal > window (although it was nice enough to accept a Ctrl-D, which then > closed the window). Is this a known problem or should I just drink more > beer and ignore it? Thanks! > I don't know if I should be flattered by this, or simply shake my head at someone implementing terminal sequences without using the ANSI or ISO standards to use as a guide (say, ANSI X3.64, or ISO 646). ] is the 7-bit version of OSC (0x9D - Operating System Control). The OSC code must be terminated by a ST (0x9C) - String Terminator). The ^G is outside the legal range of characters allowed inside a OSC control string, so xterm probably did the right thing by aborting the control string (or interpreting ^G as a terminator). The documentation should have at least by default used the ST as a terminator instead of the ^G. DXTERM, needless to say, did not terminate the string and is still waiting for a ST... which may or may not be a correct handling of the ^G. But the OSC sequence itself is not compatable with dxterm. The sequence looks a lot like the one I defined and implemented eons ago that eventually formed the base code for dxterm. The sequence on dxterm should look like: 21;new title text or in 7-bits ]21;new title text\ and the ICON text changes with: 2L;new icon text or in 7-bits ]2L;new icon text\ There were a slew of other OSC sequences that were not included in dxterm (like shrink to icon, expand from icon, move window, move icon, raise window, lower window, attach keyboard, detach keyboard).