Subj : Fix for frame.js
To   : Digital Man
From : alterego
Date : Mon Jul 27 2020 12:55 pm

 Re: Fix for frame.js
 By: Digital Man to alterego on Sun Jul 26 2020 07:29 pm

>> const frame = new
>> Frame(1,1,console.screen_columns,console.screen_rows,BG_BLACK|LIGHTGRA
>> Y); frame.gotoxy(1,1);
>> frame.putmsg(test);

>> and if test was sending something like \1n\17\1kfoo\1nbar, "bar" would
>> still have a white background with black text.

DM> But putmsg() should return the current attribute even on the next line,
DM> no? That's how console.putmsg() works.

Well, I'm not sure.

Without my patch, writing to a frame (I'm using frame.putmsg() not console.putmsg()), \n was not reseting the color - in fact the patch I gave you was just resetting the background color, but I see that I had to update it to reset the foreground color as well.

...����

... Modesty is a vastly overrated virtue.

---
� Synchronet � Alterant | an SBBS in Docker on Pi!