Closed ciscohack closed 3 years ago
Have you tried the --style
option?
Is that what you're after?
$ moar --help
Usage:
moar [options] <file>
... | moar
moar < file
Environment:
Additional options are read from the MOAR environment variable if set.
But currently, the MOAR environment variable is not set.
Options:
-colors string
Highlighting palette size: 8, 16, 256, 16M (default "16M")
-debug
Print debug logs after exiting
-no-linenumbers
Hide line numbers on startup, press left arrow key to show
-style string
Highlighting style from https://xyproto.github.io/splash/docs/longer/all.html (default "native")
-trace
Print trace logs after exiting
-version
Prints the moar version number
-wrap
Wrap long lines
$
@walles Thanks for response my friend. yes i have seen and tried but not seeing any effect or might be doing something wrong. can you show us some example of these options.
This is how i tried moar -style dracula -wrap
Can you post:
moar -style dracula -wrap
is not complete, it lacks a file name. Please copy from your terminal right before you press enter.moar
looks like with that command line. Whole window, including title and borders please.@walles I left file name intensionally as i was just trying to show you the moar command option only to see whether i am writing right or not. here style look like
Please post what I asked for in https://github.com/walles/moar/issues/66#issuecomment-871927733.
My friend i am running command "moar -style dracula -wrap shure.log" and once i hit enter display is very similar to what i posted above in screenshot. no border line and title showing for me
What exact command line did you use to get the screenshot with the lines in it and 2020
highlighted?
What I'm after is, what is it that is coloring 2020
?
Is it ITerm? Is it BAT? Something else?
What I'm after is, what is it that is coloring
2020
?Is it ITerm? Is it BAT? Something else?
I used hypterterm and BAT with script to highlight colors in first screenshot. but the borders is due to BAT tool.
In iterm2 for same i use trigger for color highlight and bat for border layout
Can you get me a screenshot of the complete window when you run BAT in the macOS Terminal?
Displaying the same file as you are doing in HyperTerm.
here you go.
Some observations:
2020
in there.moar
isn't involved.So my conclusion is that your coloring problems are related to HyperTerm.
But since this isn't the same file as before it's hard to tell. Try again with:
@walles May i know why you focusing on color part i didn't ask moar is not showing color and all. macOS terminal not showing color becoz i didn't used the trigger for coloring if i enable trigger it will show color. Here my request is to show the border style the way BAT is showing.
What you asked for initially was "style options". I assumed you were referring to colors.
moar
's --style
option affects colors only, so that won't help you.
Regarding those lines:
So I'm inclined to say "no" here.
Okay i understood your point now ..Thanks
please close the thread ..thanks for the help
@walles Sorry bothering you .. is it possible in near future more support .gz files to read the logs compressed with .gz extension or any other compression extension. Currently i use zless command to read without uncompressing it
If you open any file with a .gz
extension then moar
will decompress it as it reads it.
Okay thanks i didn't find in help section and also on your git page ..sorry.
Well spotted, README.md
updated!
And the --help
message, will go into next release.
Hi Experts,
Can we have style options like we have in BAT tool to render a file in a way looks in screnshot or can be refer BAT style options.