Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom colors for console output #2532

Closed
AlttiRi opened this issue Apr 26, 2022 · 1 comment
Closed

Custom colors for console output #2532

AlttiRi opened this issue Apr 26, 2022 · 1 comment

Comments

@AlttiRi
Copy link

AlttiRi commented Apr 26, 2022

Currently gallery-dl uses hard-coded "2" as the skip color and "1;32" as the success color.

I suggest something like this (the default config):

"output": {
  "colors": {
    "skip": "2",
    "success": "1;32"
  }
}

Since colors are different in different terminals it makes sense to customise them.

For example, in Git-Bash "2" is too dark (additionally with Enable experimental support for pseudo consoles it does not work at all (although it's mostly a bug, or just not implemented), "90" is working, of course).

So I would prefer to use "38;5;245" as the "skip" color. (#8a8a8a)
Checked, it works fine.


https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters

@mikf
Copy link
Owner

mikf commented May 4, 2022

This has been implemented in 61887c8 exactly like you described.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants