aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFranklin Wei <franklin@fwei.ml>2015-05-24 21:19:50 -0400
committerFranklin Wei <franklin@fwei.ml>2015-05-24 21:19:50 -0400
commite37ee85904063f7ebd849153c9b5cfac8675be4e (patch)
treeba25467725c9526a0dc824633c86dc0583a905c6 /src
parent5180ccb780dbd0c96b9e05fb4f30bcd9df23f3b2 (diff)
downloadmarket-sim-e37ee85904063f7ebd849153c9b5cfac8675be4e.zip
market-sim-e37ee85904063f7ebd849153c9b5cfac8675be4e.tar.gz
market-sim-e37ee85904063f7ebd849153c9b5cfac8675be4e.tar.bz2
market-sim-e37ee85904063f7ebd849153c9b5cfac8675be4e.tar.xz
output some debug stuff
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 84dae8a..9bf7011 100644
--- a/src/util.c
+++ b/src/util.c
@@ -457,6 +457,8 @@ void heading_nocurses(const char *fmt, ...)
struct winsize w;
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
+ output("width: %d\n", w.ws_col);
+
int len = strlen(text) / 2;
int beg_x = w.ws_col / 2 - len;
int d = 0;