summaryrefslogtreecommitdiff
path: root/src/ansi.h
diff options
context:
space:
mode:
authorRafal Maszkowski <rzm@icm.edu.pl>2014-04-02 20:08:58 +0200
committerAmadeusz Sławiński <amade@asmblr.net>2015-07-02 14:44:25 +0200
commit75e08620b14c80aab01a8afc95db60e5aeece371 (patch)
treea2cdb27818f8bbf3860f2af8210f3db9f0ffa9ed /src/ansi.h
parent0fc4647a35d91a62603fc9958dca699524343d56 (diff)
downloadscreen-75e08620b14c80aab01a8afc95db60e5aeece371.tar.gz
make status position runtime configurable
Status covering left side, especially bottom left is very annoying because it covers the prompt and e.g. with visual bell I have to wait to see the contents beind this visual signal. The distributions compile the default status position. I used to recompile but it is tedious. I would be much easier just to keep the favourite settings in the configuration file. Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Diffstat (limited to 'src/ansi.h')
-rw-r--r--src/ansi.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ansi.h b/src/ansi.h
index 56833c9..374799e 100644
--- a/src/ansi.h
+++ b/src/ansi.h
@@ -108,12 +108,8 @@ enum move_t {
#define ASCII 0
-#ifdef TOPSTAT
-#define STATLINE (0)
-#else
-#define STATLINE (D_height-1)
-#endif
-
+#define STATLINE() (statuspos.row == STATUS_BOTTOM ? D_height-1 : 0)
+#define STATCOL(width, len) (statuspos.col == STATUS_LEFT ? 0 : D_width - D_status_len - 2)
#define KANJI ('B' & 037)
#define KANJI0212 ('D' & 037)