Subj : Fix for frame.js To : alterego From : Digital Man Date : Sun Jul 26 2020 07:29 pm Re: Fix for frame.js By: alterego to Digital Man on Sat Jul 25 2020 11:39 pm > Hey DM, > > I have a fix for frame.js - I noticed an issue that \1n was not reseting > back to normal (normal being black background). > > Eg: I had this: > > const frame = new > Frame(1,1,console.screen_columns,console.screen_rows,BG_BLACK|LIGHTGRAY); > 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. > > This patch changes the background back to black when putmsg sees \n. But putmsg() should return the current attribute even on the next line, no? That's how console.putmsg() works. digital man This Is Spinal Tap quote #6: David St. Hubbins: He was the patron saint of quality footwear. Norco, CA WX: 72.9øF, 67.0% humidity, 4 mph SE wind, 0.00 inches rain/24hrs .