* [gentoo-user] Screen and Window Titles in screen
@ 2009-02-26 17:25 Chris Lieb
2009-02-26 17:48 ` Paul Hartman
0 siblings, 1 reply; 6+ messages in thread
From: Chris Lieb @ 2009-02-26 17:25 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am trying to get screen set up and am running into some issues getting
it to display titles like I want. When I'm not running screen, commands
like emerge change the title of the console I'm currently in (like
Konsole or PuTTY (win)). When I start up screen, all I get is the name
of the host that I am ssh'd into. I am testing only with PuTTY right
now since I don't have access to a Linux box with X on it right now.
I figured that it might be easier to get screen to set the title of one
of the screens automatically from the title that the bash session that
it is hosting has. After digging a bit, I found shelltitle, but that
only seems to read the name of the currently executing command, and also
overwrites the name that I might have assigned to that screen.
My goal is to have titles that are something like:
[screen title]: [xterm title]
where I can set [screen title] using C-a A and [xterm title] is what I
would normally see as the title of an XTerm/Konsole/PuTTY.
Is it possible to achieve something even close to this?
Thanks,
Chris Lieb
PS. Where can I find a reference for the syntax for the format strings
for things like hardstatus? I can't seem to find anything using Google.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQEcBAEBAgAGBQJJptCLAAoJEJWxx7fgsD+ChpQH/15nqEBcMjiFVuaeccQc9fmj
OlU12u00w56j9XMfdWh+KsfFS0GDh6vODznLteunBoFS63wIKgRZtJUS5E0OgJsv
nt4TaseIDS9TZhJIIj7l3I6d4IXKa2TBi2ONb0/NdNAX8zl0Y+hnIbUCYKG8ny6c
IWWbQHsp4qgF3rdu3ge1IhZfggiPz8OEBe0339PLSiVoiIkSQN98++pDc9GR4GoL
N+HyJClZ/iCX7NNY/XcaFg7Agh5tzS19f7UlXiZQ462FWv6T0mGMutKE34ZEySPI
WMHGMWewsQEehvboRsk/UdoCwSFDA8qBLK9u0KS6l55qYTmwMVvaFrsAOXjFrag=
=VuJ8
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Screen and Window Titles in screen
2009-02-26 17:25 [gentoo-user] Screen and Window Titles in screen Chris Lieb
@ 2009-02-26 17:48 ` Paul Hartman
2009-02-26 18:52 ` [gentoo-user] " Chris Lieb
0 siblings, 1 reply; 6+ messages in thread
From: Paul Hartman @ 2009-02-26 17:48 UTC (permalink / raw
To: gentoo-user
On Thu, Feb 26, 2009 at 11:25 AM, Chris Lieb <chris.lieb@gmail.com> wrote:
> I am trying to get screen set up and am running into some issues getting
> it to display titles like I want. When I'm not running screen, commands
> like emerge change the title of the console I'm currently in (like
> Konsole or PuTTY (win)). When I start up screen, all I get is the name
> of the host that I am ssh'd into. I am testing only with PuTTY right
> now since I don't have access to a Linux box with X on it right now.
I use PuTTY and screen and window titles are shown in the screens
during emerging, etc... I don't think I've had to do anything to
accomplish this, I'm just using the default /etc/screenrc
I did find a great status-bar that shows open screens (gentoo weekly
newsletter? or maybe on this list... don't remember):
caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c"
As far as the syntax of the hardstatus I think it may be usual termcap syntax.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] Re: Screen and Window Titles in screen
2009-02-26 17:48 ` Paul Hartman
@ 2009-02-26 18:52 ` Chris Lieb
2009-02-26 19:25 ` Paul Hartman
0 siblings, 1 reply; 6+ messages in thread
From: Chris Lieb @ 2009-02-26 18:52 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Hartman wrote:
> On Thu, Feb 26, 2009 at 11:25 AM, Chris Lieb <chris.lieb@gmail.com> wrote:
>> I am trying to get screen set up and am running into some issues getting
>> it to display titles like I want. When I'm not running screen, commands
>> like emerge change the title of the console I'm currently in (like
>> Konsole or PuTTY (win)). When I start up screen, all I get is the name
>> of the host that I am ssh'd into. I am testing only with PuTTY right
>> now since I don't have access to a Linux box with X on it right now.
>
> I use PuTTY and screen and window titles are shown in the screens
> during emerging, etc... I don't think I've had to do anything to
> accomplish this, I'm just using the default /etc/screenrc
>
> I did find a great status-bar that shows open screens (gentoo weekly
> newsletter? or maybe on this list... don't remember):
>
> caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c"
My problem was that I used hardstatus instead of caption. This allows
the window title to be set by the terminal.
Is there a way to have a child screen session set the title of the
terminal, eg. I run emerge inside a screen inside a screen (like sshing
from one computer to another)?
Also, is there a way to get the screen title to match the terminal title?
> As far as the syntax of the hardstatus I think it may be usual termcap syntax.
Can you give me a pointer to where a definition of that syntax is? All
I find is for defining capabilities of terminals.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQEcBAEBAgAGBQJJpuT1AAoJEJWxx7fgsD+C7s4H/0ZwCpyknJ81JSWtlbMvAgry
a4PXBxHy1IS8hRxwOwvSrNqeFcIlfcgv7dZxf0wCYyho8+QOpRNQN6yhI6VeQhqW
uye4WIq8tslf9zw3cKZuBNTt7QBVJlmu2uvszCXhI6WUF84QrgdGiBAWoP8A9Hx+
YZHs3LMvbwRRgjqy0WVttg+OVWDq3kuuOi5pMlAKvZ7/5Y1EnS1xCu0uv1F+7UBE
/fqBkCzbsaWqM7fdLvBDv1CnKl0FDZNRgOMFbCTDohTfRdPXIzyFPIzxFJBnTimn
o32Nx1O69lYbBHNv2NyC9DeObyb9ofB3trPLpI1YBrn1GiCt8llKf6CbKwEed0Q=
=scfV
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Re: Screen and Window Titles in screen
2009-02-26 18:52 ` [gentoo-user] " Chris Lieb
@ 2009-02-26 19:25 ` Paul Hartman
2009-02-26 19:44 ` Chris Lieb
0 siblings, 1 reply; 6+ messages in thread
From: Paul Hartman @ 2009-02-26 19:25 UTC (permalink / raw
To: gentoo-user
On Thu, Feb 26, 2009 at 12:52 PM, Chris Lieb <chris.lieb@gmail.com> wrote:
> Can you give me a pointer to where a definition of that syntax is? All
> I find is for defining capabilities of terminals.
I've never personally used it (I don't speak termcap :) ) but the
screen manual has a whole section about termcap stuff:
http://www.gnu.org/software/screen/manual/
Paul
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] Re: Screen and Window Titles in screen
2009-02-26 19:25 ` Paul Hartman
@ 2009-02-26 19:44 ` Chris Lieb
2009-02-26 20:00 ` Paul Hartman
0 siblings, 1 reply; 6+ messages in thread
From: Chris Lieb @ 2009-02-26 19:44 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Hartman wrote:
> On Thu, Feb 26, 2009 at 12:52 PM, Chris Lieb <chris.lieb@gmail.com> wrote:
>> Can you give me a pointer to where a definition of that syntax is? All
>> I find is for defining capabilities of terminals.
>
> I've never personally used it (I don't speak termcap :) ) but the
> screen manual has a whole section about termcap stuff:
>
> http://www.gnu.org/software/screen/manual/
mm...
> %{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c
doesn't look like
> SC|screen|VT 100/ANSI X3.64 virtual terminal:\
> :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
> :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
> :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
> :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
> :li#24:co#80:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
> :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
> :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
> :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
> :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
> :se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
> :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\
> :vb=\Eg:G0:as=\E(0:ae=\E(B:\
> :ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}
> ~~..--++,,hhII00:\
> :po=\E[5i:pf=\E[4i:Z0=\E[?3h:Z1=\E[?3l:k0=\E[10~:\
> :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:\
> :k7=\E[18~:k;=\E[21~:F1=\E[23~:F2=\E[24~:F3=\E[2P:\
> :F4=\E[2Q:F5=\E[2R:F6=\E[2S:F7=\E[15;2~:F8=\E[17;2~:\
> :F9=\E[18;2~:FA=\E[19;2~:kb=^H:K2=\EOE:kB=\E[Z:\
> :kF=\E[1;2B:kR=\E[1;2A:*4=\E[3;2~:*7=\E[1;2F:#2=\E[1;2H:\
> :#3=\E[2;2~:#4=\E[1;2D:%c=\E[6;2~:%e=\E[5;2~:%i=\E[1;2C:\
> :kh=\E[1~:@1=\E[1~:kH=\E[4~:@7=\E[4~:kN=\E[6~:kP=\E[5~:\
> :kI=\E[2~:kD=\E[3~:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:km:
I'm guessing that the format for caption and hardstatus isn't termcap.
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQEcBAEBAgAGBQJJpvEwAAoJEJWxx7fgsD+CObEIAKgQHndEQgmoUjHOZI7xNhcr
gnMrUiQ8gvp8xyYhE5Z/BN6ti4DRfpuEV2N211QvQFmULHAeb/mT9rCadhCjEVgt
Ep6ZO4k0KO/zVk7wnjiEbG719gO1B2uIQ2guAvkUrPUrPLBLqdBrwMzU5cSIQiat
5AI80qw0N3ZlQ/mtg2Hdl3/BE9zzxWf0gGjljkNcs90HE5Q6zBK4DAJwaVzq0c8q
QR/9qGDHqeHyLEZ3T/HCOK8u4Q+zDSWQHu3N9ugkFSqI9+ACj9a38yjZ8jlAK2KO
ba9naewpA9gXXplKpTNBKo9fLjNLkBr+KibTad7AJTcw8Sx9nFriC4B1a/66FDg=
=2ixH
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Re: Screen and Window Titles in screen
2009-02-26 19:44 ` Chris Lieb
@ 2009-02-26 20:00 ` Paul Hartman
0 siblings, 0 replies; 6+ messages in thread
From: Paul Hartman @ 2009-02-26 20:00 UTC (permalink / raw
To: gentoo-user
On Thu, Feb 26, 2009 at 1:44 PM, Chris Lieb <chris.lieb@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Paul Hartman wrote:
>> On Thu, Feb 26, 2009 at 12:52 PM, Chris Lieb <chris.lieb@gmail.com> wrote:
>>> Can you give me a pointer to where a definition of that syntax is? All
>>> I find is for defining capabilities of terminals.
>>
>> I've never personally used it (I don't speak termcap :) ) but the
>> screen manual has a whole section about termcap stuff:
>>
>> http://www.gnu.org/software/screen/manual/
>
> mm...
>
>> %{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c
>
> doesn't look like
>
>> SC|screen|VT 100/ANSI X3.64 virtual terminal:\
>> :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
>> :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
>> :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
>> :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
>> :li#24:co#80:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
>> :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
>> :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
>> :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
>> :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
>> :se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
>> :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\
>> :vb=\Eg:G0:as=\E(0:ae=\E(B:\
>> :ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}
>> ~~..--++,,hhII00:\
>> :po=\E[5i:pf=\E[4i:Z0=\E[?3h:Z1=\E[?3l:k0=\E[10~:\
>> :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:\
>> :k7=\E[18~:k;=\E[21~:F1=\E[23~:F2=\E[24~:F3=\E[2P:\
>> :F4=\E[2Q:F5=\E[2R:F6=\E[2S:F7=\E[15;2~:F8=\E[17;2~:\
>> :F9=\E[18;2~:FA=\E[19;2~:kb=^H:K2=\EOE:kB=\E[Z:\
>> :kF=\E[1;2B:kR=\E[1;2A:*4=\E[3;2~:*7=\E[1;2F:#2=\E[1;2H:\
>> :#3=\E[2;2~:#4=\E[1;2D:%c=\E[6;2~:%e=\E[5;2~:%i=\E[1;2C:\
>> :kh=\E[1~:@1=\E[1~:kH=\E[4~:@7=\E[4~:kN=\E[6~:kP=\E[5~:\
>> :kI=\E[2~:kD=\E[3~:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:km:
>
> I'm guessing that the format for caption and hardstatus isn't termcap.
>
> Chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iQEcBAEBAgAGBQJJpvEwAAoJEJWxx7fgsD+CObEIAKgQHndEQgmoUjHOZI7xNhcr
> gnMrUiQ8gvp8xyYhE5Z/BN6ti4DRfpuEV2N211QvQFmULHAeb/mT9rCadhCjEVgt
> Ep6ZO4k0KO/zVk7wnjiEbG719gO1B2uIQ2guAvkUrPUrPLBLqdBrwMzU5cSIQiat
> 5AI80qw0N3ZlQ/mtg2Hdl3/BE9zzxWf0gGjljkNcs90HE5Q6zBK4DAJwaVzq0c8q
> QR/9qGDHqeHyLEZ3T/HCOK8u4Q+zDSWQHu3N9ugkFSqI9+ACj9a38yjZ8jlAK2KO
> ba9naewpA9gXXplKpTNBKo9fLjNLkBr+KibTad7AJTcw8Sx9nFriC4B1a/66FDg=
> =2ixH
> -----END PGP SIGNATURE-----
>
>
You're right; I got confused by all of the hardstatus-related termcap
commands in screenrc.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-02-26 20:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-26 17:25 [gentoo-user] Screen and Window Titles in screen Chris Lieb
2009-02-26 17:48 ` Paul Hartman
2009-02-26 18:52 ` [gentoo-user] " Chris Lieb
2009-02-26 19:25 ` Paul Hartman
2009-02-26 19:44 ` Chris Lieb
2009-02-26 20:00 ` Paul Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox