You are not logged in.

#1 2024-09-08 16:41:29

gpc
Member
Registered: 2017-02-23
Posts: 8

/bin/less started blinking instead of highlighting

So a few days ago after upgrading, /bin/less started displaying blinking text instead of highlight, which is not nice to look at. Setting environment variable

LESS="--use-color"

removes this blinking.

Did this happen to anyone else?

Offline

#2 2024-09-08 17:21:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: /bin/less started blinking instead of highlighting

Can you be more specific?  "Highlight" is not an ansi graphics mode attribute.  Do you mean bold?  And is --use-color the only flag passed to less?  Wouldn't -R (or -r) need to be included for any ansi escape codes to be interpreted?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2024-09-09 15:27:17

gpc
Member
Registered: 2017-02-23
Posts: 8

Re: /bin/less started blinking instead of highlighting

By "highlight" I mean change of background colour (and maybe swap foreground/background colours). This is not about formatting already in the input, but AFAIR /bin/less did "highlighting" to a number of things including to the bottom line message (e.g. "(END)"), and to text that matches a search. It started blinking these things instead, and --use-color is the first option I tried that changed that behavior. I have tried with and without passing -R .

This is in bash in urxvt . I am aware of variable LESS and aliases to set options, but not aware of any other way that options are being passed to less non-explicitly.

Offline

#4 2024-09-09 16:43:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: /bin/less started blinking instead of highlighting

Thanks, that clarifies the symptoms well.  The problem is then most likely with your terminfo settings.  What's the output of `echo $TERM`?

Are you using any remote connection like ssh, or is this all on a single local machine?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2024-09-09 20:50:51

seth
Member
Registered: 2012-09-03
Posts: 60,787

Re: /bin/less started blinking instead of highlighting

Do you use the repo version of urxvt?
It doesn't seem to have set --enable-text-blink?

printenv | grep -i less

Offline

Board footer

Powered by FluxBB