Prepped ANSI is working very well + ANSI in FSE pristine in *most* cases

Moved prepAnsi() -> ansi_prep.js as ansiPrep (single export)
This commit is contained in:
Bryan Ashby 2017-08-28 23:17:35 -06:00
parent 1bad0de5c1
commit 9379c7f5e7
7 changed files with 238 additions and 31 deletions

View file

@ -343,7 +343,9 @@ exports.FullScreenEditorModule = exports.getModule = class FullScreenEditorModul
// really don't like ANSI messages in UTF-8 encoding (they should!)
//
msgOpts.meta = { System : { 'explicit_encoding' : Config.scannerTossers.ftn_bso.packetAnsiMsgEncoding || 'cp437' } };
msgOpts.message = `${ansi.reset()}${ansi.eraseData(2)}${ansi.goto(1,1)}${msgOpts.message}`;
// :TODO: change to <ansi>\r\nESC[A<message>
//msgOpts.message = `${ansi.reset()}${ansi.eraseData(2)}${ansi.goto(1,1)}${msgOpts.message}`;
msgOpts.message = `${ansi.reset()}${ansi.eraseData(2)}${ansi.goto(1,1)}\r\n${ansi.up()}${msgOpts.message}`;
}
}