Subj : Fix for frame.js
To : Digital Man
From : alterego
Date : 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.
MTExOWQxMTE4CjwgCQkJCXRoaXMuX19wcm9wZXJ0aWVzX18uY3Vycl9hdHRyPSh0aGlzLl9fcHJv
cGVydGllc19fLmN1cnJfYXR0cikmMHg4ZjsK
...����
... In matters of conscience, the law of majority has no place.
---
� Synchronet � Alterant | an SBBS in Docker on Pi!