This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: linespacing in less


Bingo. I had TERM=linux in my leftover .bashrc from B20.1. Setting
TERM to cygwin gets me back to normal.
Thanks for the quick and helpful response.
Markus

Bob McGowan writes:
 > Markus Hoenicka wrote:
 > > 
 > > Hi all,
 > > 
 > > this is another tiny bit of teething pain after upgrading from B20.1 to
 > > the latest net release.
 > > 
 > > When I use less as a pager, I notice additional blank lines in all
 > > logical lines that extend the width of the terminal and thus have to
 > > be wrapped. E.g. a line longer than 80 chars and shorter than 160
 > > chars will be displayed as one full line, a blank line, and a line
 > > showing the rest.
 > > 
 > > This is different from what I used to see in B20.1 and different from
 > > what I see on Linux.
 > > 
 > > Is this again a text mount vs. binary mount issue? I have all mounts
 > > as binary just as the setup.exe created them and I set Unix as the
 > > default text format. I used to have text mounts in B20.1.
 > > 
 > 
 > Since the break is in the middle of the line, it is not likely a
 > text/binary issue.  Much more likely that there is a change in the
 > terminfo/termcap for your terminal type or that you have a mis-match
 > between the value in TERM and the actual emulator you are using.
 > 
 > Your terminal type as found in the TERM varialbe needs to match the
 > emulator (which could be cygwin, xterm, rxvt, ansi, etc).  If these
 > match, then I would suspect a problem/feature in the terminal database. 
 > You might try different terminal names to see how they work.  Using the
 > following command line will set the varialbe for 'less' but not change
 > the current value:
 > 
 >    TERM=ansi less file_with_long_line
 > 
 > Then set 'export TERM=working_version' in your .profile where
 > working_version is the working version you hopefully found.  By the way,
 > you would probably also want to try it with your editor (assuming you
 > use something like vi) to be sure the new TERM value works with it too.
 > 
 > I hope this helps.
 > 
 > -- 
 > Bob McGowan
 > Staff Software Quality Engineer
 > VERITAS Software
 > rmcgowan@veritas.com

-- 
Markus Hoenicka, PhD
UT Houston Medical School
Dept. of Integrative Biology and Pharmacology
6431 Fannin MSB4.114
Houston, TX 77030
(713) 500-6313, -7477
(713) 500-7444 (fax)
Markus.Hoenicka@uth.tmc.edu
http://ourworld.compuserve.com/homepages/hoenicka_markus/


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]