Skip to content

Commit 65ccaef

Browse files
Esc[m escape sequence support
1 parent 0d847e8 commit 65ccaef

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"printableName": "Cache Web Terminal",
66
"description": "Web-based terminal emulator for Caché administering.",
77
"author": "ZitRo",
8-
"version": "4.2.2",
8+
"version": "4.2.3",
99
"gaID": "UA-83005064-2",
1010
"releaseNumber": 26,
1111
"scripts": {

src/client/js/output/esc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ let esc = {
198198
"\x1b[{\\d*};\"{[^\"]}\"p": (args) => { // define key
199199
console.log("todo: implement key assignment", args);
200200
},
201-
"\x1b[{\\d+(?:;\\d+)*}m": (args) => {
201+
"\x1b[{\\d*(?:;\\d*)*}m": (args) => {
202202
let indices = args[0].split(`;`);
203203
for (let i = 0; i < indices.length; i++) {
204-
if (indices[i] === "0") {
204+
if (indices[i] === "0" || indices[i] === "") {
205205
output.resetGraphicProperties();
206206
continue;
207207
}

0 commit comments

Comments
 (0)