<<< Date Index >>>     <<< Thread Index >>>

Re: selecting : white spaces at then end of body lines



Message de Thomas Dickey, le dimanche 28 décembre :
> On Sun, 28 Dec 2003, benoit wrote:
> 
> > Message de David Yitzchak Cohen, le samedi 27 décembre :
> > > On Sat, Dec 27, 2003 at 04:29:57PM +0100, benoit wrote:
> > > > each time i want to copy and paste a text from mutt, i have to pipe the
> > > > mail to less because the lines in the pager body end with white spaces.
> > > >
> > > > why not \n ? is it possible to change this ?
> > >
> > > Can you provide a test message?  I tried using copy/paste from your
> > > message, and lines ended correctly.  What are you using to copy/paste,
> > > anyway?  I'm using GNU Screen 3.9.15, FWIW.
> >
> >
> > you're right, it's not a mutt-related problem.
> > for each mail opened in the pager, the body lines are padded with white
> > spaces, when using screen (4.00.01 (FAU) 18-Sep-03)
> >
> > without screen, it's fine. with screen, i can still pipe the mail to
> > less : there's no spaces.
> 
> It's because of the way xterm (and similar programs) store the text which
> can be selected.  If you setup screen to use the back-color-erase (bce)
> configuration, the problem goes away.


thanks a lot, problem solved. 

picked up from README.Debian, for further reference :


Q: Why do I get #!$@#$@!% trailing spaces when I cut and paste from mutt
   running within screen?
Q: Why does the statusbar in my irc client extend to the end of the screen
   in xterm but not in screen?

A: This has to do with handling of the bce terminal attribute, or lack
   thereof by default in screen. You can enable bce on a per-user basis by
   adding the following to your .screenrc:

   defbce on
   term screen-bce

   NOTE: if you do this your TERM will be screen-bce. When you login to
         other machines they may not have a screen-bce terminal type, so you
         will see errors. To fix this you must put the terminfo for screen-bce
         on that remote machine. The screen terminfo is found in
         /usr/share/doc/screen/terminfo/screeninfo.src and you can compile it
         on the remote machine using tic(1).





ben


-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread.