Skip to content
Snippets Groups Projects
Commit 07d08a0b authored by m j's avatar m j
Browse files

Update frame.js

update frame.putmsg() "normal" ctrl-a code to use attributes from frame initialization (ansi "normal" is relative to the frame's settings). to emulate standard "normal" behaviour, initialize frames with BG_BLACK|LIGHTGRAY
parent 9ac720d0
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #142 passed
...@@ -1114,9 +1114,7 @@ Frame.prototype.putmsg = function(str,attr) { ...@@ -1114,9 +1114,7 @@ Frame.prototype.putmsg = function(str,attr) {
this.__properties__.curr_attr|=BLINK; this.__properties__.curr_attr|=BLINK;
break; break;
case 'N': /* Normal */ case 'N': /* Normal */
this.__properties__.curr_attr&=~HIGH; this.__properties__.curr_attr=(this.attr);
this.__properties__.curr_attr&=~BLINK;
this.__properties__.curr_attr=((this.__properties__.curr_attr)&0x8f)|LIGHTGRAY;
break; break;
case '+': case '+':
this.__properties__.attr_stack.push(this.__properties__.curr_attr); this.__properties__.attr_stack.push(this.__properties__.curr_attr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment