Skip to content
Snippets Groups Projects
Commit 6539b898 authored by rswindell's avatar rswindell
Browse files

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.
parent 0ad2c4a2
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment