Re: Behavior of "less" on different systems
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Just in case someone cares: I finally managed to get "less" to function the same way on both Mac OS X and FreeBSD - in so far as I was originally concerned. To recap, I wanted the behavior of "less" to do it's work without leaving all the scrolled mess scrolled into the capture file in Terminal. It does this for me on three major releases of Mac OS X but not on the FreeBSD 5.3 and 6.1 here. All the suggestions were to the point but to no avail since things looked as though they should behave identically at the level of detail discussed. After much fumbling about I believe I figured out that Mac OS X uses "terminfo" and FreeBSD uses "termcap" (it's actually a bit difficult for me to tell as there's a lot of both stuff on both types of systems - is this right???). Using the "tack" program, I dumped the "caps" (capabilities) on Mac OS X for xterm-color and noted the ti/smcup & te/rmcup were not null. On FreeBSD, in the termcap file (and one presumes in the termcap.db file) I believe they're null. So, I copied these two codes to a new termcap file on one of the FreeBSD boxes and ran cap_mkdb against it. After this, "less" worked as desired. -- Walter M. Pawley <walt@wump.org> Wump Research & Company 676 River Bend Road, Roseburg, OR 97470 541-672-8975 _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Walt Pawley