Control: merge -1 399848 Control: retitle -1 With -R, less should support ^N and ^O (smacs and rmacs on some terms, like vt100 and screen) Control: found -1 487-0.1
It was me who reported these two bugs. I'm a bit surprised why I reported the second one, but I don't remember if there was any difference between these two bugs. They look the same. So let's merge them. On 2006-12-18 14:10:58 +0100, Vincent Lefevre wrote: > $ echo "`tput smacs`mq`tput rmacs`> foo" > > outputs an arrow and "foo". But if I type > > echo "`tput smacs`mq`tput rmacs`> foo" | less -R > > in xterm, less doesn't take the rmacs into account. > This is a regression: less 382-1 behaved correctly. There wasn't enough information. This occurs only when smacs and rmacs are ^N and ^O, respectively, e.g. with TERM=vt100 (or VT100-based TERM values) or TERM=screen (or a variant). Moreover, to be completely portable, one also needs a "tput enacs", as described here: http://savannah.gnu.org/bugs/?23646 Then echo "`tput enacs``tput smacs`mq`tput rmacs`> foo" is OK with TERM=vt100 and in GNU Screen. But echo "`tput enacs``tput smacs`mq`tput rmacs`> foo" | less -R is not. Perhaps some of these terminals like vt100 or xterm-xfree86 could be regarded as obsolete (not sure), but GNU Screen isn't. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)