Skip to content

Важная информация отображалась другим цветом. #224

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

Closed
haronkz opened this issue Jun 8, 2020 · 13 comments
Assignees
Milestone

Comments

@haronkz
Copy link

haronkz commented Jun 8, 2020

Когда много экземпляров PG, не совсем удобно мониторить список бекапов командой "show". Возможно ли добавить в "set-config" настройки цветовых вариантов? Сейчас настраиваю grc для этих целей. Получается примерно так.

image

@gsmolk
Copy link
Contributor

gsmolk commented Jun 8, 2020

Добрый день!
Выглядит как что-то полезное, попробуем сделать.

@gsmolk gsmolk added this to the 2.5.0 milestone Jun 8, 2020
@haronkz
Copy link
Author

haronkz commented Jun 8, 2020

Я далек от С, но может это как-то будет полезно и сэкономит вам время.
https://lhs-blog.info/programming/dlang/tsvetnoy-vyivod-teksta-v-terminale-linux/

@gsmolk
Copy link
Contributor

gsmolk commented Jun 8, 2020

Спасибо, лишним не будет.

@mkdel
Copy link

mkdel commented Jun 10, 2020

пока приходится пользоваться sed для подсветки
image

в общем +1 за удобный, но не критичный функционал

@gsmolk
Copy link
Contributor

gsmolk commented Jun 10, 2020

Ну выглядит как что-то не очень сложное, постараемся сделать.

@gsmolk gsmolk self-assigned this Jun 30, 2020
@gsmolk
Copy link
Contributor

gsmolk commented Jul 3, 2020

@haronkz, первые результаты:

Вариант 1:
color_2

Вариант 2 (bold):
color_3

@gsmolk
Copy link
Contributor

gsmolk commented Jul 5, 2020

+Status:
color_4

@gsmolk
Copy link
Contributor

gsmolk commented Jul 6, 2020

Я думаю, что надо заодно задать цвет для WARNING and ERROR сообщений.

@gsmolk
Copy link
Contributor

gsmolk commented Jul 6, 2020

+Сообщения:
color_messages

@gsmolk
Copy link
Contributor

gsmolk commented Jul 6, 2020

+New flag: --color

gsmolk added a commit that referenced this issue Jul 6, 2020
gsmolk added a commit that referenced this issue Jul 6, 2020
gsmolk added a commit that referenced this issue Jul 6, 2020
@gsmolk
Copy link
Contributor

gsmolk commented Jul 6, 2020

+Windows support:
win_color

gsmolk added a commit that referenced this issue Jul 6, 2020
@gsmolk
Copy link
Contributor

gsmolk commented Jul 6, 2020

Готово, можно опробовать в ветке issue_224

gsmolk added a commit that referenced this issue Jul 7, 2020
gsmolk added a commit that referenced this issue Jul 7, 2020
@gsmolk
Copy link
Contributor

gsmolk commented Jul 7, 2020

Смержено.

@gsmolk gsmolk closed this as completed Jul 7, 2020
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

3 participants