diff --git a/exec/showfileavatar.js b/exec/showfileavatar.js new file mode 100644 index 0000000000000000000000000000000000000000..d083218b4418d0d24e1cd55d46e9b4171db02df9 --- /dev/null +++ b/exec/showfileavatar.js @@ -0,0 +1,11 @@ +// $Id$ + +const FM_ANON =(1<<1); +const USER_ANSI =(1<<1); + +// Avatar support here: +if(!(bbs.file_attr&FM_ANON) && console.term_supports(USER_ANSI)) { + var Avatar = load({}, 'avatar_lib.js'); + Avatar.draw(system.matchuser(bbs.file_uploader), null, null, /* above: */true, /* right-justified: */true); + console.attributes = 0; // Clear the background attribute as the next line might scroll, filling with BG attribute +} \ No newline at end of file