Opened 7 years ago
Last modified 3 years ago
#56022 new enhancement
Colors in the port command
Reported by: | g5pw (Aljaž Srebrnič) | Owned by: | g5pw (Aljaž Srebrnič) |
---|---|---|---|
Priority: | Normal | Milestone: | MacPorts Future |
Component: | base | Version: | |
Keywords: | Cc: | Lord-V15 (Vibhansh), ryandesign (Ryan Carsten Schmidt) | |
Port: |
Description
At the MacportsMeeting2018 we discussed about adding colors to the port command. The lowest-hanging fruit would be to colorize warnings and errors. That can be done directly in the port client but it needs to be checked if the resulting output is "pleasing".
Change History (7)
comment:1 Changed 7 years ago by neverpanic (Clemens Lang)
Milestone: | MacPorts 2.5.0 → MacPorts 2.6.0 |
---|
comment:2 Changed 5 years ago by jmroot (Joshua Root)
Milestone: | MacPorts 2.6.0 → MacPorts 2.7.0 |
---|
comment:3 Changed 5 years ago by satraul (Satryaji Aulia)
Some ideas:
- Emphasize importance such as red for
ui_error
, yellow forui_warn
, gray forUI_PREFIX
(-->
) - Emphasize portnames in actions like install
comment:4 Changed 5 years ago by Lord-V15 (Vibhansh)
COLORS
I have worked on this and have some screenshots of the resulting work with me. Should I post them here or should I just include them in my GSoC proposal because either way, this ticket will definitely be a part of the project "IMPROVE COMMAND LINE TOOL UX".
I used this code at the front of the string being return to change the ui_error to red
"\033\[31m ERROR : "
comment:5 Changed 5 years ago by mf2k (Frank Schima)
Component: | ports → base |
---|---|
Type: | defect → enhancement |
comment:6 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | Lord-V15 ryandesign added |
---|
Yes please post screenshots or provide a link to wherever you're working on this.
comment:7 Changed 3 years ago by jmroot (Joshua Root)
Milestone: | MacPorts 2.7.0 → MacPorts Future |
---|
Ticket retargeted after milestone closed
Ticket retargeted after milestone closed