mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-13 16:14:39 +02:00
Remove extra reset in ESC seq
This commit is contained in:
parent
c1ad067558
commit
b922f54024
1 changed files with 1 additions and 5 deletions
|
@ -399,10 +399,6 @@ function getSGRFromGraphicRendition(graphicRendition, initialReset) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(!styleCount) {
|
|
||||||
sgrSeq.push(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(graphicRendition.fg) {
|
if(graphicRendition.fg) {
|
||||||
sgrSeq.push(graphicRendition.fg);
|
sgrSeq.push(graphicRendition.fg);
|
||||||
}
|
}
|
||||||
|
@ -411,7 +407,7 @@ function getSGRFromGraphicRendition(graphicRendition, initialReset) {
|
||||||
sgrSeq.push(graphicRendition.bg);
|
sgrSeq.push(graphicRendition.bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(initialReset) {
|
if(0 === styleCount || initialReset) {
|
||||||
sgrSeq.unshift(0);
|
sgrSeq.unshift(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue