1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00

Add Less With Style as a unix til

This commit is contained in:
jbranchaud
2016-05-28 09:58:13 -05:00
parent 102b2f566a
commit 0a5ca005e3
2 changed files with 17 additions and 1 deletions

15
unix/less-with-style.md Normal file
View File

@@ -0,0 +1,15 @@
# Less With Style
I was using `less` the other day to look at a log file. The log file was
filled with ANSI color escape sequences which made it pretty painful to
read. I was stuck looking at a white, unparsed log file instead of a
colorful, stylish one.
The `-R` flag fixes this. It tells `less` to display the ANSI color escape
sequences as colors rather than the caret notation.
The tradeoff is that `less` has _less_ control over the overall display of
the screen. This may result in some buggy display behavior, but not
necessarily.
[source](http://superuser.com/questions/117841/get-colors-in-less-command)