Opened 7 years ago

Last modified 4 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.0MacPorts 2.6.0

comment:2 Changed 5 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.6.0MacPorts 2.7.0

Ticket retargeted after milestone closed

comment:3 Changed 5 years 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 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: portsbase
Type: defectenhancement

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 4 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.7.0MacPorts Future

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.