From 6539b898bda919c87fa52ce4f9dbc00f24bd1cf0 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 11 Apr 2019 10:03:12 +0000
Subject: [PATCH] Use the new bbs.msghdr_top_of_screen property to determine if
 the avatar should be shown at the top of the screen or relative to the bottom
 of the header.

---
 exec/showmsgavatar.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/exec/showmsgavatar.js b/exec/showmsgavatar.js
index 015a47c817..dd4094854f 100644
--- a/exec/showmsgavatar.js
+++ b/exec/showmsgavatar.js
@@ -16,6 +16,7 @@ var   USER_ANSI         =(1<<1);
 // Avatar support here:
 if(!(bbs.msg_attr&MSG_ANONYMOUS) && console.term_supports(USER_ANSI)) {
 	var Avatar = load({}, 'avatar_lib.js');
-	Avatar.draw(bbs.msg_from_ext, bbs.msg_from, bbs.msg_from_net, /* above: */true, /* right-justified: */true);
+	Avatar.draw(bbs.msg_from_ext, bbs.msg_from, bbs.msg_from_net, /* above: */true, /* right-justified: */true
+		,bbs.msghdr_top_of_screen);
 	console.attributes = 7;	// Clear the background attribute as the next line might scroll, filling with BG attribute
 }
\ No newline at end of file
-- 
GitLab