Comments (5)
@baptistemarchand thanks for contributing.
ANSI parsing apparently is very hard. I spent quite some time looking for the "right" lib without luck. As you can see the color is parsed ~correctly, it may be a problem with [K
. I will google it up but it's ansi_up
issue. I am open to suggestions on alternative libs.
from rtail.
try this:
$ echo -e "\e[01;31mlol\e[m aaa" | rtail --name test_grep
the problem appears to be grep adding a clearline escape.
from rtail.
$ GREP_COLORS=ne echo lol aaa | grep --color=always lol | rtail --id test_grep
did we do it? 💃
from rtail.
Thanks for your quick answer!
I tried the GREP_COLORS solution yesterday and couldn't get it to work. After some investigation today it appears that BSD grep (the version used on mac) doesn't support the GREP_COLORS variable. I tried it on Linux and it works fine with GNU grep.
This is getting really outside the scope of rtail so you can probably close this issue. I'll let you know if I find an elegant workaround for OSX!
It might be useful to document the GREP_COLORS=ne thing somewhere, like in the README or some FAQ.
Thanks!
from rtail.
@baptistemarchand thanks for contributing.
from rtail.
Related Issues (20)
- Streams Mixed?? HOT 6
- Monitor folder with logs HOT 3
- Memory issues HOT 6
- Browser Freeze with 122 files in RTAIL
- Messages appearing on wrong streams HOT 3
- SSL certificates expired for rtail.org and rtail-demo.lukibear.com HOT 2
- Searching / Filtering JSON
- Stream mixed HOT 1
- How to change the time zone HOT 1
- Cannot run from source
- Increase log buffer size HOT 2
- project status: abandoned or to be resurrected HOT 5
- Overwrite logs
- The system cannot find the path specified HOT 1
- Not working with pm2 ecosystem files
- node and npm version?
- Display formatted hyperlinks
- Limitations to amount of logs broadcasted by rtail ?
- The term '/bin/sh.exe' is not recognized as a name of a cmdlet
- Deprication and permission issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtail.