ledger/src
Stefano Zacchiroli 56976a127c make --columns default to terminal width, as returned by ioctl()
If set, the COLUMNS environment variable will take precedence over terminal
width. However, please note that COLUMNS is usually *not* exported by shells to
child processes, so in most cases COLUMNS will be undefined for ledger---hence
the motivation for this change.

Terminal width is queried using ioctl() on stdin. For the sake of portability
the querying is done only on platform where ioctl() is detected as supported at
compile-time.
2014-10-13 17:15:56 -04:00
..
account.cc Apply any outstanding deferred postings at the end of parsing 2014-04-14 11:08:26 -05:00
account.h #if guards for boost 1.56 compatibility 2014-08-28 11:04:55 -04:00
amount.cc Unify debugging categories 2014-07-01 14:14:23 -04:00
amount.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
annotate.cc Unify debugging categories 2014-07-01 14:14:23 -04:00
annotate.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
archive.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
archive.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
balance.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
balance.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
chain.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
chain.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
CMakeLists.txt Cosmetic change - format code consistently 2014-05-18 09:51:32 -04:00
commodity.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
commodity.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
compare.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
compare.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
context.h Remove trailing whitespace from error messages 2014-05-13 18:08:34 -04:00
convert.cc Remove trailing whitespace from error messages 2014-05-13 18:08:34 -04:00
convert.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
csv.cc rename payee_mappings to payee_alias_mappings 2014-05-12 23:16:07 +01:00
csv.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
draft.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
draft.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
emacs.cc Fix Bug 1057: Emacs output does not escape special characters. 2014-06-26 20:52:50 -07:00
emacs.h Fix Bug 1057: Emacs output does not escape special characters. 2014-06-26 20:52:50 -07:00
error.cc Remove trailing whitespace from error messages 2014-05-13 18:08:34 -04:00
error.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
expr.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
expr.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
exprbase.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
filters.cc Replace sha1.cc with boost::uuid::details::sha1 2014-04-17 14:27:21 -05:00
filters.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
flags.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
format.cc Improve backwards compatibility with ledger2 2014-05-30 23:52:36 -04:00
format.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
generate.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
generate.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
global.cc minor spelling fixes 2014-09-15 14:04:19 -04:00
global.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
history.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
history.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
item.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
item.h #if guards for boost 1.56 compatibility 2014-08-28 11:04:55 -04:00
iterators.cc Unify debugging categories 2014-07-01 14:14:23 -04:00
iterators.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
journal.cc Cosmetic change - format code consistently 2014-05-18 09:51:32 -04:00
journal.h support payee uuid directive 2014-05-13 16:08:10 +01:00
lookup.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
lookup.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
main.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
mask.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
mask.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
op.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
op.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
option.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
option.h Cosmetic change - format code consistently 2014-05-18 09:51:32 -04:00
org.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
org.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
output.cc Cosmetic change - format code consistently 2014-05-18 09:51:32 -04:00
output.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
parser.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
parser.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
pool.cc Use the POST_COST_VIRTUAL flag when exchange commodities 2014-05-08 14:28:07 -05:00
pool.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
post.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
post.h #if guards for boost 1.56 compatibility 2014-08-28 11:04:55 -04:00
precmd.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
precmd.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
predicate.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
print.cc Preserve the given cost for print 2014-07-14 21:05:54 -04:00
print.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
pstream.h Fixing two GCC warnings 2014-02-26 12:29:57 +01:00
ptree.cc #if guards for boost 1.56 compatibility 2014-08-28 11:04:55 -04:00
ptree.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
py_account.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
py_amount.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
py_balance.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
py_commodity.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
py_expr.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
py_format.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
py_item.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
py_journal.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
py_post.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
py_session.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
py_times.cc Cosmetic change - format code consistently 2014-05-18 09:51:32 -04:00
py_utils.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
py_value.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
py_xact.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
pyfstream.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
pyinterp.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
pyinterp.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
pyledger.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
pyutils.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
query.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
query.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
quotes.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
quotes.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
report.cc make --columns default to terminal width, as returned by ioctl() 2014-10-13 17:15:56 -04:00
report.h fix rare bug in balance report output if the budgeted amount happens to be zero. 2014-08-24 18:40:00 -07:00
scope.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
scope.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
select.cc make --columns default to terminal width, as returned by ioctl() 2014-10-13 17:15:56 -04:00
select.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
session.cc Cosmetic change - format code consistently 2014-05-18 09:51:32 -04:00
session.h Adding option --no-aliases to completely disable alias expansion 2014-02-26 23:50:50 +01:00
stats.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
stats.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
stream.cc use /bin/sh to run the pager 2014-04-02 23:10:03 +01:00
stream.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
strptime.cc Corrected filename for strptime.cc 2013-06-15 16:37:04 -07:00
strptime.h Source changes needed for Microsoft Visual C++ compatibility. 2013-06-14 21:29:47 -07:00
system.hh.in make --columns default to terminal width, as returned by ioctl() 2014-10-13 17:15:56 -04:00
temps.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
temps.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
textual.cc Preserve the given cost for print 2014-07-14 21:05:54 -04:00
timelog.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
timelog.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
times.cc Add ISO 8601 date as recognized date string 2014-10-02 18:33:26 -04:00
times.h #if guards for boost 1.56 compatibility 2014-08-28 11:04:55 -04:00
token.cc Fix a compiler warning 2014-03-28 13:51:00 -05:00
token.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
unistring.h Use mk_wcwidth instead mk_wcwidth_cjk 2014-02-13 19:19:40 +08:00
utils.cc Fix build for building with g++ 4.8 2014-05-07 20:49:45 +00:00
utils.h Require the use of C++11 2014-04-17 14:34:36 -05:00
value.cc Attempt to convert balances to amounts before failing comparisons 2014-02-21 13:05:12 -06:00
value.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
views.cc Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
views.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00
wcwidth.c.patch Correctly justify Unicode characters in terminal 2014-02-13 18:40:06 +08:00
wcwidth.cc Fixing two GCC warnings 2014-02-26 12:29:57 +01:00
xact.cc "mispelled" was misspelled 2014-09-08 09:41:21 -07:00
xact.h Bump copyright information to 2014 2014-02-02 12:36:22 +01:00