Skip to content

[Feature suggestion] Fancy colourful output when running "gem install NAME", and colour bars on the commandline output, similar to python's pypi #5876

@rubyFeedback

Description

@rubyFeedback

I just installed a package via "pip install buku".

The following image shows how this is on the commandline:

https://i.imgur.com/89FA3Iz.png

I like the colours a lot. In particular, the colours don't stay the same, but instead
the bar changes colours as it grows. This indicates percentage I assume; it is
visually nice.

I would like to have that for "gem install bla" too.

Now! Before anyone who hates colours objects: I do not mean to imply that
EVERYONE should see that output. It is ok to retain "gem" how it is, out of
the box - so no colours, and thus no change.

I would like to have it as an option, though, ideally a --commandline flag
and perhaps an instruction into .gemrc or wherever these are kept (like
the no-rdoc option and so forth).

The flag could be --fancy-colours or --detailed-colours or --colourizer
or something like that. Once this is decided and agreed (hopefully)
we can move that into our .gemrc and keep it like the no-rdoc,
no-ri and so forth options. (I don't remember it offhand but there is
a file you can modify to have gem honour your own settings. I
usually disable rdoc/docfiles because I only read things online
anyway)

What would be necessary for this feature? Hmm. Good question. I don't
know which escape codes are used. I guess the python code may show
how it works and perhaps even explains it. But I think before we look
into the question of implementing this and adding support, it may be
prudent to discuss it a little bit and see whether other users think this
may be useful or not. I would thus like to suggest to keep this issue
open for, say, 3 weeks from now on or something like that before it
is closed/archived. Perhaps others like colourized output too.

Thanks for reading.

Edit: Made the title a bit more readable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions