diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-21 22:04:01 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-21 22:04:01 -0400 |
commit | eb4aa8784338dc52730a97654bcd61642b4ff959 (patch) | |
tree | 4e6d3e6a64f8155844a198776fb1cc0bf5683e1c /doc/ledger.1 | |
parent | 8ca91c1196181954e0b3da36110bfe069d2831fe (diff) | |
download | fork-ledger-eb4aa8784338dc52730a97654bcd61642b4ff959.tar.gz fork-ledger-eb4aa8784338dc52730a97654bcd61642b4ff959.tar.bz2 fork-ledger-eb4aa8784338dc52730a97654bcd61642b4ff959.zip |
Added a new --colors option, for terminal fun
The following colors are applied in the balance and register reports:
GREEN To a date, if it occurs in the future
BOLD If a payee name relates to an uncleared entry
BLUE For account names
RED For negative values
Diffstat (limited to 'doc/ledger.1')
-rw-r--r-- | doc/ledger.1 | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/ledger.1 b/doc/ledger.1 index 4cd11c14..652fbe5b 100644 --- a/doc/ledger.1 +++ b/doc/ledger.1 @@ -90,8 +90,6 @@ and causes an immediate reloading of all journal files in the session. .It Fl \-amount-data Pq Fl j .It Fl \-amount-width Ar INT .It Fl \-anon -.It Fl \-ansi -.It Fl \-ansi-invert .It Fl \-args-only .It Fl \-average Pq Fl A .It Fl \-balance-format Ar FMT @@ -105,6 +103,7 @@ and causes an immediate reloading of all journal files in the session. .It Fl \-code-as-payee .It Fl \-collapse Pq Fl n .It Fl \-collapse-if-zero +.It Fl \-colors .It Fl \-columns Ar INT .It Fl \-commodity-as-account (Also \fB\-\-comm\-as\-account\fR). @@ -268,6 +267,17 @@ interpret parentheses, you should always escape them: .It Nm actual .It Nm amount .It Nm amount_expr +.It Fn ansify_if value color bool +Render the given +.Ar value +as a string, applying the proper ANSI escape codes to display it in the given +.Ar color +if +.Ar bool +is true. It typically checks the value of the option +.Nm Fl \-colors , +for example: +.Dl ansify_if(amount, "blue", options.colors) .It Nm beg_line .It Nm beg_pos .It Nm calculated |