screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gentoo portage and screen


From: Emil Beinroth
Subject: Re: Gentoo portage and screen
Date: Mon, 24 Jan 2005 01:40:38 +0100
User-agent: Mutt/1.5.6i

On Sun, Jan 23, 2005 at 11:54:13PM +0000, David Cannings wrote:
> I have been using the following with good success recently in screen:
>
> caption always "%{= bb}%{+b w}Screen: %n | %h %=%t %c"
> hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
>
> However, a recent update to portage on all of my Gentoo systems has now
> changed its behaviour.  It seems the portage not only writes to the
> caption but also to the hardstatus, replacing the name of the window
> with "emerge 10/252...", which can often span 50+ characters.  Is there
> any reason a program should be writing to the section that contains the
> window name?  I have built the above caption/hardstatus up over a few
> years from snippets on this list and websites and, ashamedly, have never
> looked up exactly what each variable is, so possibly I'm wrong.
>
> If this is incorrect behaviour on the part of Gentoo's portage, I will
> report it as a bug.  If it's simply annoying behaviour, I will consider
> asking for it to be changed.  I'm not sure many people will have seen
> what I am seeing, however it is still a pain for me.
>
> David

Hi David,

You don't need to report a bug :)
http://bugs.gentoo.org/show_bug.cgi?id=75670

They call it a improvement .. and I find it somewhat usefull to see
in the caption/hardstatus when a merge is finished. The only think bad
is that emerge does rename the screen-tab (after it is finished) to
"screen" (thats the name of my aterm running screen).
I helped myself with a small function in roots ~/.bashrc:

 function emerge ()
 {
     /usr/bin/emerge "$@"
     # Rename tab after screen is finished
     [[ "$TERM" = "screen" ]] && echo -ne "\x1bkroot\x1b\\"
 }

Everytime I call emerge the function gets called and executes
/usr/bin/emerge,
then renames the tab "root" (My root-tabs are all named "root" ..
replace it what ever you like).

Or you could just remove the patch from the appropriate files (the patch
is in a comment to the bug posted above).

Hope you'll find some of this usefull :)

Regards Emil Beinroth

--
Clicking on a link in a slashdot story is like slapping somebody when
they are on their knees -- /. sig




reply via email to

[Prev in Thread] Current Thread [Next in Thread]