aboutsummarylogtreecommitdiffstats
path: root/info.h
diff options
context:
space:
mode:
authorAntony Kellermann2018-05-28 16:30:06 -0400
committerAntony Kellermann2018-05-28 16:30:06 -0400
commit623f25f7ed052eae15f6f48be1c8c3b8b66c610c (patch)
treeeeda8f1c9ef93b3cab87809e47e697371a151e0b /info.h
parent3b4b35e9d273b33b062734d1b5aee0b003101723 (diff)
downloadaur-623f25f7ed052eae15f6f48be1c8c3b8b66c610c.tar.gz
Modified info for ncurses output
Diffstat (limited to 'info.h')
-rw-r--r--info.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/info.h b/info.h
index 0720b816f5bd..174d6374e3a0 100644
--- a/info.h
+++ b/info.h
@@ -18,6 +18,18 @@
#define RED COLOR_PAIR(1)
#define BLACK COLOR_PAIR(2)
+#define PADDING 3
+
+#define GRAPH_Y PADDING
+#define GRAPH_X PADDING
+#define GRAPH_HEIGHT (rows / 2 - GRAPH_Y)
+#define GRAPH_WIDTH (cols / 2 - GRAPH_X)
+
+#define COMPANY_Y GRAPH_Y
+#define COMPANY_X GRAPH_WIDTH + GRAPH_X
+#define COMPANY_HEIGHT GRAPH_HEIGHT
+#define COMPANY_WIDTH GRAPH_WIDTH
+
#include <stdlib.h>
#include <ncurses.h>
#include "api.h"