summaryrefslogtreecommitdiff
path: root/column.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-04-13 10:54:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-04-27 16:26:38 (GMT)
commit077539d734cdc4b0a3d2ea87fc487fa5c21d0311 (patch)
tree0e6899e3287619e7f92628c8f1c451b1173a958b /column.h
parent88e8f908f2b0c56f9ccf8134d8ff9f689af9cc84 (diff)
downloadgit-077539d734cdc4b0a3d2ea87fc487fa5c21d0311.zip
git-077539d734cdc4b0a3d2ea87fc487fa5c21d0311.tar.gz
git-077539d734cdc4b0a3d2ea87fc487fa5c21d0311.tar.bz2
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/column.h b/column.h
index b8719b3..ec7e1d2 100644
--- a/column.h
+++ b/column.h
@@ -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) \