Giter Club home page Giter Club logo

Comments (3)

anurag-roy avatar anurag-roy commented on August 27, 2024 1

@flohw Think your issue is different.

Can you check your groff version using

groff -v

And if it's 1.23.0, try adding MANROFFOPT='-c' and that should fix it.

from bat.

flohw avatar flohw commented on August 27, 2024

Hi,

I have a similar issue, I think. I use zsh 5.9, bat 0.24 (installed via arch official repository) and I have MANPAGER=sh -c 'col -bx | bat -l man -p' too.
Not everything is orange for me but I have some color character which make it hard to read.

2024-07-05-153013_553x329_scrot

It works better with MANPAGER="bat -l man"`
2024-07-05-153233_586x306_scrot

But sometimes the behavior is very strange.
2024-07-05-153334_804x532_scrot

Let me know if you need more info.

Thank you

from bat.

flohw avatar flohw commented on August 27, 2024

After some experimentations with my env vars, defining this variable worked fine.
Thank you

Some explanation if anyone struggle to configure it to their need:

 # For global use across the system (in your bashrc/zshrc)
export MANROFFOPT='-c'
# For local script global useage
MANROFFOPT='-c'
man -P "$MANPAGER' --paging always'" <man entry>
# For online usage
MANROFFOPT='-c' man -P $MANPAGER <man entry>

Note that I haven't tested each one and only based them on my experience. I hope to not have make mistake. :-)

from bat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.