Giter Club home page Giter Club logo

Comments (7)

garabik avatar garabik commented on July 17, 2024

Can you send me the details of your OS? tty size should not be ignored, only the changes during the execution of grc. What does grc resize say?

In particular, I see no problems with ps aux.

from grc.

vikstrous avatar vikstrous commented on July 17, 2024

I'm using fish and urxvt. grc resize reports the correct numbers.

from grc.

vikstrous avatar vikstrous commented on July 17, 2024

I figured out what I was doing wrong. Specifying the config directly with --config=conf.ps was causing the issue. If I don't specify it, it seems to work.

from grc.

vikstrous avatar vikstrous commented on July 17, 2024

The same thing was causing #25 as well.

from grc.

vikstrous avatar vikstrous commented on July 17, 2024

Err... if I don't specify the config the output was colourized by cope because I have that installed too. Maybe my issues are related to running everything through both cope and grc.

from grc.

garabik avatar garabik commented on July 17, 2024

I see. ps ignores tty size if its output is not a terminal - try ps aux|cat to see the effect. I am (slowly) working on tty emulation, hopefully that should fix the issue.

grc ps without --config was probably not colourising the output, because it did not recognise the ps command and therefore ps had been executed directly.

from grc.

vikstrous avatar vikstrous commented on July 17, 2024

Hmm... sorry for all the confusion. Looks like I CAN reproduce this easily this way:

grc --config=conf.ps /usr/bin/ps aux

so, yeah, I guess when there was no config the output was the tty, not grc, so that's why it worked and in my case it was coloured because I accidentally ran the cope executable.

#25 is separate and still valid

from grc.

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.