Subj : Fix for frame.js
To : alterego
From : Digital Man
Date : Sat Aug 01 2020 12:23 pm
Re: Fix for frame.js
By: alterego to Digital Man on 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.
I'm not clear why a '\n' should reset any colors at all. <shrug>
digital man
This Is Spinal Tap quote #12:
Nigel Tufnel: Well, I don't know - wh-wh-... what're the hours?
Norco, CA WX: 94.1�F, 32.0% humidity, 10 mph NE wind, 0.00 inches rain/24hrs
---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net