Re: String escape for total number of windows?

2009-12-19 Thread Artur Skonecki
Thanks for the patch. I was looking for this functionality.

2009/12/18, Thor Andreassen t...@toggle.be:
 On Thu, Dec 10, 2009 at 10:25:11PM -0800, John Magolske wrote:
 Is there a string escape sequence that will display the total number
 of windows (just a single number, not all window numbers and names)?

 There does not seem to be.

 For example, if I were in the 7th window and 23 windows were open,
 I'd like to see something like

   7 / 23 : vim ~/.mutt/temp/mutt-1000-25786-33

 by setting hardstatus to something like

   hardstatus alwayslastline %n / %x : %t

 Of course %x is not an escape for anything, I'm just using it here as
 a placeholder...there doesn't seem to be an escape for total number of
 windows. Might it be possible to achieve this by truncating the output
 of %w or some such thing?

 Looking at the code, at least with my eyes, truncation seems difficult
 and will probably end up as a hack.

 I've attached a patch that copies some of the functionality of the '%w'
 handling, and should be applied to the newest source on savannah. It
 seems to produce the correct result, although someone more familiar with
 the code should check it for any unwanted consequences.

 [...]

 --
 HTH
 Thor



-- 
Artur Skonecki
http://adb.cba.pl


___
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users


Re: Ping Packagers

2009-12-19 Thread Sadrul Habib Chowdhury
* Miroslav Lichvar had this to say on [10 Dec 2009, 10:35:00 +0100]:
 On Wed, Dec 09, 2009 at 01:19:00PM -0500, Sadrul Habib Chowdhury wrote:
  Hello everyone. Are there any screen packagers on this list? I am
  contemplating a sort of a beta-release somewhat soon-ish (still
  non-trivial amount of work to do, though, so no ETA yet), and was
  thinking if this list is the best place to reach the packagers.
 
 Hi,
 
 I'm the maintainer for Fedora. You can see the patches we
 are currently using here:
 
 http://cvs.fedoraproject.org/viewvc/devel/screen/

Thanks for the link. I looked at a number of them:

 screen-4.0.1-args.patch

Applied after some change (7ac593d74dfd2243cd60c5d848547ebd9971a8b0).

I didn't include the change in ansi.c: w_NumArgs should never be
negative. If something is causing is to be set to a negative number, then
that's a bug and we need to figure where/why/how that happens, so the
real bug can be fixed.

 screen-4.0.2-maxstr.patch

It looks like MAXSTR has been increased to 512. It can still be increased
more, of course. Is there a bug-report somewhere that requested for this
change? I would like to know exactly what problems the limitations
caused.

 screen-4.0.3-libs.patch

I plan to take a look at https://savannah.gnu.org/bugs/?27318 first.

 screen-4.0.3-resize.patch

Already in.

 screen-4.0.3-ipv6.patch

Need to take a closer look.

 screen-4.0.3-stropts.patch

I believe e3b1d2c50a5cc84a0985dbf608b9ee47996b7e47 takes care of this?
(i.e. using HAVE_STROPTS_H)

Cheers,
Sadrul



___
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users


Re: Cannot set $TERM in screen -- it always defaults to xterm

2009-12-19 Thread Leo Alekseyev

 
 What shell are you using, and does the problem persist if you start your
 shell without config files?

 
That seemed to be the problem -- by .bashrc had export TERM=xterm.  I still
don't understand why that would override trying to set TERM directly in screen,
but after I had removed the line from bashrc and toyed around with $TERM
setting, I was able to get 256 color support under xterm.





___
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users