diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-28 02:13:49 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-28 02:13:54 -0400 |
commit | 16dbd019bc1d955f083e8f771d00c6a3f9c553ba (patch) | |
tree | bed25ac408315145f819cf115a610717dce9965b | |
parent | a3a40994d25164b57ed4ae8908e1a9cc7ba3b208 (diff) | |
download | fork-ledger-16dbd019bc1d955f083e8f771d00c6a3f9c553ba.tar.gz fork-ledger-16dbd019bc1d955f083e8f771d00c6a3f9c553ba.tar.bz2 fork-ledger-16dbd019bc1d955f083e8f771d00c6a3f9c553ba.zip |
Colorization at the terminal now on by default
-rw-r--r-- | src/global.cc | 3 | ||||
-rwxr-xr-x | test/LedgerHarness.py | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/global.cc b/src/global.cc index 2ce73bae..19cab1c8 100644 --- a/src/global.cc +++ b/src/global.cc @@ -418,6 +418,9 @@ void global_scope_t::normalize_report_options(const string& verb) report_t& rep(report()); + if (! rep.HANDLED(no_color)) + rep.HANDLER(color).on_only(string("?normalize")); + // jww (2009-02-09): These globals are a hack, but hard to avoid. item_t::use_effective_date = (rep.HANDLED(effective) && ! rep.HANDLED(actual_dates)); diff --git a/test/LedgerHarness.py b/test/LedgerHarness.py index cc3b04cd..5af47463 100755 --- a/test/LedgerHarness.py +++ b/test/LedgerHarness.py @@ -48,9 +48,8 @@ class LedgerHarness: if columns: insert += ' --columns=80' - command = re.sub('\$ledger', - '%s%s --args-only' % (self.ledger, insert), - command) + command = re.sub('\$ledger', '%s%s --args-only --no-color' % \ + (self.ledger, insert), command) return Popen(command, shell=True, close_fds=True, env=env, stdin=PIPE, stdout=PIPE, stderr=PIPE) |