aboutsummaryrefslogtreecommitdiff
path: root/src/addrs.h
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-01 02:00:23 -0500
committerB. Watson <urchlay@slackware.uk>2026-03-01 02:00:23 -0500
commit6521e971cdb772c53256d84a54c8d7b2d1ffa632 (patch)
tree28af564e7a12dd629d791e815834b3782177ec0c /src/addrs.h
parentd3a19b319e8ecdf111de44ffa9847474301edcbb (diff)
downloadfujinet-chat-6521e971cdb772c53256d84a54c8d7b2d1ffa632.tar.gz
Scrollback!
Diffstat (limited to 'src/addrs.h')
-rw-r--r--src/addrs.h32
1 files changed, 25 insertions, 7 deletions
diff --git a/src/addrs.h b/src/addrs.h
index 6d44a68..dd9f23d 100644
--- a/src/addrs.h
+++ b/src/addrs.h
@@ -1,15 +1,33 @@
-#define FONT_ADDR_HI 0xa0
-#define DLIST_ADDR 0xa400
+#define FONT_ADDR_HI 0x80
+#define DLIST_TOP_ADDR 0xbfa0
+#define DLIST_BOT_ADDR 0xbfd0
#define u8 unsigned char
#define u8p(x) ((unsigned char *)x)
#define u16 unsigned int
#define u16p(x) ((unsigned int *)x)
-extern u8 *dlist;
+/* dlist_bot is the main one, dlist_top is used when
+ scrolled back. */
+extern u8 *dlist_top, *dlist_bot;
+
extern u16 *dlist_top_lms;
-extern u16 *dlist_bottom_lms;
-extern u8 *status_box;
+extern u16 *dlist_bot_lms;
+
+/* points to either edit_box or one of the status_boxes[] */
+extern u16 *dlist_status_lms;
+
+/* only one of these (not one per screen) */
extern u8 *edit_box;
-extern u8 *screen_addrs[7];
-extern u8 *screen_botlines[7];
+
+/* used for scrollback */
+extern u8 *screen_top_addrs[7];
+
+/* normal (non-scrollback) display */
+extern u8 *screen_bot_addrs[7];
+
+/* address of last line of _bot, where printing actually happens */
+extern u8 *screen_lastlines[7];
+
+/* bottom 2 lines of the _bot display list for each screen */
+extern u8 *status_boxes[7];