Some notes
This commit is contained in:
parent
91e0c44d9d
commit
8f988f5dc1
|
@ -176,7 +176,7 @@ function ANSIEscapeParser(options) {
|
||||||
id : id ? parseInt(id, 10) : null,
|
id : id ? parseInt(id, 10) : null,
|
||||||
args : args,
|
args : args,
|
||||||
SGR : ansi.getSGRFromGraphicRendition(self.graphicRendition, true)
|
SGR : ansi.getSGRFromGraphicRendition(self.graphicRendition, true)
|
||||||
});
|
});
|
||||||
|
|
||||||
if(self.mciReplaceChar.length > 0) {
|
if(self.mciReplaceChar.length > 0) {
|
||||||
self.emit('chunk', ansi.getSGRFromGraphicRendition(self.graphicRenditionForErase));
|
self.emit('chunk', ansi.getSGRFromGraphicRendition(self.graphicRenditionForErase));
|
||||||
|
|
|
@ -473,6 +473,7 @@ function Packet(options) {
|
||||||
try {
|
try {
|
||||||
decoded = iconv.decode(messageBodyBuffer, encoding);
|
decoded = iconv.decode(messageBodyBuffer, encoding);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
// :TODO: add log warning here including failure reason
|
||||||
decoded = iconv.decode(messageBodyBuffer, 'ascii');
|
decoded = iconv.decode(messageBodyBuffer, 'ascii');
|
||||||
}
|
}
|
||||||
//const messageLines = iconv.decode(messageBodyBuffer, encoding).replace(/\xec/g, '').split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/g);
|
//const messageLines = iconv.decode(messageBodyBuffer, encoding).replace(/\xec/g, '').split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/g);
|
||||||
|
|
Loading…
Reference in New Issue