Page MenuHomeFreeBSD

top(1): Start parsing colors
Needs RevisionPublic

Authored by eadler on Jun 22 2018, 1:26 AM.
Tags
None
Referenced Files
F112055065: D15960.diff
Wed, Mar 12, 4:34 AM
F112016915: D15960.id44281.diff
Tue, Mar 11, 3:11 PM
Unknown Object (File)
Thu, Feb 20, 8:20 AM
Unknown Object (File)
Feb 1 2025, 3:38 AM
Unknown Object (File)
Jan 20 2025, 1:26 AM
Unknown Object (File)
Jan 6 2025, 3:01 AM
Unknown Object (File)
Dec 23 2024, 3:57 PM
Unknown Object (File)
Nov 28 2024, 4:37 AM
Subscribers

Details

Reviewers
allanjude
rgrimes
0mp
Group Reviewers
manpages
Summary

This starts off parsing colors in a manner similar to that documented in
newer versions of the original top(1).

  • currently unimplemented: actually using the color
  • it doesn't deal well with malformed TOPCOLOR strings

I wanted to get some early feedback though.

ref D15801 for what's blocking making use of the colors

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17531
Build 17354: arc lint + arc unit

Event Timeline

add documentation stub to remind me to write more

Would it make sense to add an EXAMPLES section that shows how to define a proper TOPCOLOR?

In D15960#338171, @bcr wrote:

Would it make sense to add an EXAMPLES section that shows how to define a proper TOPCOLOR?

yeah. This isn't done or documented. Just threw this up here in order to (a) get feedback and (b) not lose it.

0mp requested changes to this revision.Aug 2 2018, 12:06 AM
0mp added a subscriber: 0mp.

I think I've found some issues with mdoc formatting in the manual page.

usr.bin/top/top.1
196 ↗(On Diff #44282)

Shouldn't there be a newline after ".Nm"?

Also, it should be Ev TOPCOLOR.

197 ↗(On Diff #44282)

Ev TOPCOLOR

383 ↗(On Diff #44282)

Shouldn't we use Ev instead of Pa here?

384 ↗(On Diff #44282)

Missing period at the end.

Also, shouldn't we replace top with Nm here?

385 ↗(On Diff #44282)

This should follow the "Default set of arguments to" line.

This revision now requires changes to proceed.Aug 2 2018, 12:06 AM