aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;