Opened 3 years ago

Last modified 5 months ago

#56022 new enhancement

Colors in the port command

Reported by: g5pw (Aljaž Srebrnič) Owned by: g5pw (Aljaž Srebrnič)
Priority: Normal Milestone: MacPorts 2.7.0
Component: base Version:
Keywords: Cc: Lord-V15 (Vibhansh), ryandesign (Ryan 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 (6)

comment:1 Changed 3 years ago by neverpanic (Clemens Lang)

Milestone: MacPorts 2.5.0MacPorts 2.6.0

comment:2 Changed 15 months ago by jmroot (Joshua Root)

Milestone: MacPorts 2.6.0MacPorts 2.7.0

Ticket retargeted after milestone closed

comment:3 Changed 14 months ago by satraul (Satryaji Aulia)

Some ideas:

  • Emphasize importance such as red for ui_error, yellow for ui_warn, gray for UI_PREFIX (-->)
  • Emphasize portnames in actions like install

comment:4 Changed 8 months 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 8 months ago by mf2k (Frank Schima)

Component: portsbase
Type: defectenhancement

comment:6 Changed 5 months ago by ryandesign (Ryan Schmidt)

Cc: Lord-V15 ryandesign added

Yes please post screenshots or provide a link to wherever you're working on this.

Note: See TracTickets for help on using tickets.