💻 Software
Change less (pager) default options
Fresh7 days ago
Mar 15, 20266235 viewsConfidence Score0%
0%
Problem
I'm using Ubuntu 10.04. My default pager(set using update-alternatives, not $PAGER) is less. The problem is, when I use ri(Ruby documentation tool) with the '-f ansi' mode, less shows the escape sequences(such as 'ESC[36m') instead of displaying the text in color. I can force it to show colors by m…
Error Output
ri -f ansi String | less -R
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Change less (pager) default options
Low Risk
I found the answer somewhere else. I needed to use to set up less's options: Then Ctrl+d did the trick. I'm still not sure why less ignores $LESS though.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix