diff options
| author | Franklin Wei <franklin@fwei.ml> | 2015-05-24 21:19:50 -0400 |
|---|---|---|
| committer | Franklin Wei <franklin@fwei.ml> | 2015-05-24 21:19:50 -0400 |
| commit | e37ee85904063f7ebd849153c9b5cfac8675be4e (patch) | |
| tree | ba25467725c9526a0dc824633c86dc0583a905c6 /src | |
| parent | 5180ccb780dbd0c96b9e05fb4f30bcd9df23f3b2 (diff) | |
| download | market-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |