Some notes

This commit is contained in:
Bryan Ashby 2016-04-11 20:23:11 -06:00
parent 91e0c44d9d
commit 8f988f5dc1
2 changed files with 2 additions and 1 deletions

View File

@ -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));

View File

@ -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);