summaryrefslogtreecommitdiff
path: root/src/bin/psql/print.h
diff options
context:
space:
mode:
authorPeter Eisentraut2011-11-12 15:03:10 +0000
committerPeter Eisentraut2011-11-12 15:03:10 +0000
commit95d2af1646080474ad3e1f1303e68dd5799f9cad (patch)
treef6983d202744cbff88419f582f61c17c6e740bc3 /src/bin/psql/print.h
parentaa3299f25601c1a27e52c1c49e92b7f11441e76b (diff)
Add psql expanded auto mode
This adds the "auto" option to the \x command, which switches to the expanded mode when the normal output would be wider than the screen. reviewed by Noah Misch
Diffstat (limited to 'src/bin/psql/print.h')
-rw-r--r--src/bin/psql/print.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/print.h b/src/bin/psql/print.h
index 35bb4cde1d9..bb206136294 100644
--- a/src/bin/psql/print.h
+++ b/src/bin/psql/print.h
@@ -70,8 +70,8 @@ typedef struct printTextFormat
typedef struct printTableOpt
{
enum printFormat format; /* see enum above */
- bool expanded; /* expanded/vertical output (if supported by
- * output format) */
+ unsigned short int expanded;/* expanded/vertical output (if supported by
+ * output format); 0=no, 1=yes, 2=auto */
unsigned short int border; /* Print a border around the table. 0=none,
* 1=dividing lines, 2=full */
unsigned short int pager; /* use pager for output (if to stdout and