* Retitle a X/Motif (dxterm) window on the fly
@ 1996-09-11 4:00 Laurence G. Esmonde Jr.
1996-09-11 4:00 ` Fred Kleinsorge
1996-09-16 4:00 ` Brandon Wallace
0 siblings, 2 replies; 5+ messages in thread
From: Laurence G. Esmonde Jr. @ 1996-09-11 4:00 UTC (permalink / raw)
The X-Window's User's Guide (Vol 3) states, on page 638 - xterm control
sequences -- that the sequence
<esc> ] 2 ; <text> ^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!
-----------------------------------------------------------------------------
Laurence G. Esmonde Jr. WPL Laboratories,
Inc.
lge@wpllabs.com (610)658-2362
x222
-----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Retitle a X/Motif (dxterm) window on the fly
1996-09-11 4:00 Retitle a X/Motif (dxterm) window on the fly Laurence G. Esmonde Jr.
@ 1996-09-11 4:00 ` Fred Kleinsorge
1996-09-12 4:00 ` T.E.Dickey
1996-09-17 4:00 ` Fady Abushahla
1996-09-16 4:00 ` Brandon Wallace
1 sibling, 2 replies; 5+ messages in thread
From: Fred Kleinsorge @ 1996-09-11 4:00 UTC (permalink / raw)
Laurence G. Esmonde Jr. wrote:
>
> The X-Window's User's Guide (Vol 3) states, on page 638 - xterm control
> sequences -- that the sequence
>
> <esc> ] 2 ; <text> ^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).
<esc>] 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:
<osc>21;new title text<st>
or in 7-bits <esc>]21;new title text<esc>\
and the ICON text changes with:
<osc>2L;new icon text<st>
or in 7-bits <esc>]2L;new icon text<esc>\
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).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Retitle a X/Motif (dxterm) window on the fly
1996-09-11 4:00 ` Fred Kleinsorge
@ 1996-09-12 4:00 ` T.E.Dickey
1996-09-17 4:00 ` Fady Abushahla
1 sibling, 0 replies; 5+ messages in thread
From: T.E.Dickey @ 1996-09-12 4:00 UTC (permalink / raw)
In comp.windows.x.motif Fred Kleinsorge <kleinsorge@star.enet.dec.com> wrote:
: 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).
the latest xterm from XFree86 does indeed recognize OSC & ST (but retains
the state for ^G, for compatibility. (Not knowing the history of all of
this, but knowing the relative ages of xterm & X3.64, I have a hunch that
the "standard" way of doing things wasn't that common 8 years ago).
: 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).
dtterm implements several of these functions (but, unhappily, doesn't use
the OSC/ST convention); I've implemented corresponding ones for xterm,
since dtterm's more well known than dxterm (there ought to be a standard...).
--
Thomas E. Dickey
dickey@clark.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Retitle a X/Motif (dxterm) window on the fly
1996-09-11 4:00 ` Fred Kleinsorge
1996-09-12 4:00 ` T.E.Dickey
@ 1996-09-17 4:00 ` Fady Abushahla
1 sibling, 0 replies; 5+ messages in thread
From: Fady Abushahla @ 1996-09-17 4:00 UTC (permalink / raw)
How about doing the same thing on HP-UX platforms ?
I tried all the combinations you present, none of them work.
Thanks.
:
Fred Kleinsorge (kleinsorge@star.enet.dec.com) wrote:
: Laurence G. Esmonde Jr. wrote:
: >
: > The X-Window's User's Guide (Vol 3) states, on page 638 - xterm control
: > sequences -- that the sequence
: >
: > <esc> ] 2 ; <text> ^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).
: <esc>] 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:
: <osc>21;new title text<st>
: or in 7-bits <esc>]21;new title text<esc>\
: and the ICON text changes with:
: <osc>2L;new icon text<st>
: or in 7-bits <esc>]2L;new icon text<esc>\
: 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).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Retitle a X/Motif (dxterm) window on the fly
1996-09-11 4:00 Retitle a X/Motif (dxterm) window on the fly Laurence G. Esmonde Jr.
1996-09-11 4:00 ` Fred Kleinsorge
@ 1996-09-16 4:00 ` Brandon Wallace
1 sibling, 0 replies; 5+ messages in thread
From: Brandon Wallace @ 1996-09-16 4:00 UTC (permalink / raw)
To: Laurence G. Esmonde Jr.
on SUNs, the following works on dtterms and shelltools
under both olwm and dtwm:
alias cd 'chdir \!* ; set LABEL = {$HOST}:$cwd ; echo -n "^[]l $LABEL
^[\"'
(where ^[ is the escape key...can be enter by typing control-v followed
by the Esc key.)
Good luck
--
Brandon Wallace
Nicholas | Applegate Capital Management
mailto:bman@houston.nacm.com
"I live life face down in the fast lane."
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1996-09-17 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-11 4:00 Retitle a X/Motif (dxterm) window on the fly Laurence G. Esmonde Jr.
1996-09-11 4:00 ` Fred Kleinsorge
1996-09-12 4:00 ` T.E.Dickey
1996-09-17 4:00 ` Fady Abushahla
1996-09-16 4:00 ` Brandon Wallace
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox