#397856 less and wy60 terminal

Package:
less
Source:
less
Description:
pager program similar to more
Submitter:
"Robert Fantini"
Date:
2011-08-22 01:45:03 UTC
Severity:
normal
#397856#5
Date:
2006-11-10 00:20:39 UTC
From:
To:
Using a Link-mc5 terminal in  wyse-60 emulation.

When I try to use less from Etch to display a text file, the lines
display one on top of another..

When I login to a Sarge system, the same file displays ok.

Sarge uses:  Version 382-1

In both sessions $TERM=wy60

I tried using the  /usr/share/terminfo/w/wy60  but that did not fix the problem.

As a work around I copied  Sarge's less over to a local/bin .

If there is any testing I could do or more info needed then send a mail

#397856#10
Date:
2006-11-10 01:16:26 UTC
From:
To:
...keeping mind that I don't maintain "less" (and it uses a termcap interface)

That sounds as if less is confused about line-wrapping.

It would probably be helpful to attach a test-case consisting of the
text file that misbehaves, along with a typescript (from "script")
for each of the two versions, running "less" through the same way.

It's been a while since there were changes to the wyse entries.

#397856#15
Date:
2011-08-22 01:43:16 UTC
From:
To:
The less options -R or --RAW-CONTROL-CHARS do not work on non-vt100
terminals. http://www.greenwoodsoftware.com/less/news.346.html

Consider: ... | groff -ms -Tlatin1 | less -R

There groff -man uses overstrike which is emulated by less using
terminfo. However, groff -ms ANSI  ESC [ ... m escape sequences are not
translated this way. This does not work on an ibm3151 or tvi950. It
would work if it were translated in a similar way to screen (which is
one possible work around). It would work for wy60 too. It would also
help perldoc too. See bug #243370 which should be filed against perldoc
as perldoc needs to supply the -R option.

The less options -r and --raw-control-chars could remain for complete
transparency.

This is only a feature enhancement request. It does not exist upstream
so I have CCed it there too.