[gentoo-user] Re: Screen and Window Titles in screen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Hartman wrote: On Thu, Feb 26, 2009 at 11:25 AM, Chris Lieb chris.l...@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-
Re: [gentoo-user] Re: Screen and Window Titles in screen
On Thu, Feb 26, 2009 at 12:52 PM, Chris Lieb chris.l...@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
[gentoo-user] Re: Screen and Window Titles in screen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Hartman wrote: On Thu, Feb 26, 2009 at 12:52 PM, Chris Lieb chris.l...@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-
Re: [gentoo-user] Re: Screen and Window Titles in screen
On Thu, Feb 26, 2009 at 1:44 PM, Chris Lieb chris.l...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Hartman wrote: On Thu, Feb 26, 2009 at 12:52 PM, Chris Lieb chris.l...@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.