diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2012-04-13 17:54:35 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-27 09:26:38 -0700 |
commit | 077539d734cdc4b0a3d2ea87fc487fa5c21d0311 (patch) | |
tree | 0e6899e3287619e7f92628c8f1c451b1173a958b /column.h | |
parent | 88e8f908f2b0c56f9ccf8134d8ff9f689af9cc84 (diff) | |
download | git-077539d734cdc4b0a3d2ea87fc487fa5c21d0311.tar.gz |
column: add columnar layout
COL_COLUMN and COL_ROW fill column by column (or row by row
respectively), given the terminal width and how many space between
columns. All cells have equal width.
Strings are supposed to be in UTF-8. Valid ANSI escape strings are OK.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'column.h')
-rw-r--r-- | column.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -10,6 +10,8 @@ #define COL_AUTO 0x0020 #define COL_LAYOUT(c) ((c) & COL_LAYOUT_MASK) +#define COL_COLUMN 0 /* Fill columns before rows */ +#define COL_ROW 1 /* Fill rows before columns */ #define COL_PLAIN 15 /* one column */ #define explicitly_enable_column(c) \ |