Jump to content

Programmable Columns


rogue777

Recommended Posts

Make the display columns programmable by exposing the variables currently used to an interpretted programming language.

For example, two of the exposed values would be Seeds and Peers, with subvalues .active and .total. So the program for the "Seeds" column might look like this:

print "$Seeds.active ($Seeds.total)"; # assuming $ interpolates value into string

The standard columns would be preprogrammed and unchangeable (always available), but the user could add their own. For example, this would show a number comparing the total seeds to total peers:

if (Peers.total == 0) {

print "$Seeds.total / 0"; # number followed by "/ 0"

}

else {

print round(Seeds.total / Peers.total, 2);

}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...