Begone, trailing spaces!

I read my work email with mutt on a Solaris 9 box. For a while it's been irritating me that when you attempt to cut and paste, it will include trailing spaces on each line instead of stopping at the last "real" character. Some Googling suggested this was because of the lack of the BCE attribute in my xterm-color terminfo definition. Rather than learn how to compile terminfo entries (I've done it before, but I don't want to learn again!), I took the lazier approach: copy /usr/share/terminfo/s/screen-256color-bce from a Fedora 8 box into /home/johnlev/.terminfo/s/, and start mutt with TERM and TERMINFO set appropriately. Now I can cut and paste sanely again.

Tags:

Comments:

This seemed to work almost painlessly for me (after doing some searching):

% infocmp xterm-color | sed -e 's/am, km,/am, bce, km,/' > /tmp/xterm-color
% tic /tmp/xterm-color

which created ~/.terminfo/x/xterm-color for me, which is the same as the standard one, but has the bce attribute added.

Hope that's helpful to someone!

John

Posted by John Sellens on October 18, 2010 at 12:53 PM BST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

levon

Search

Categories
Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today