
CR and BS would still be processed during CRM. Fix all the partial CRM sequences followed by a complete CRM sequence. It's possible for some text files to have `\r\r\n` endings (Microsoft converts LF to CRLF even when the CR is already there). Collapse multiple CRs to a single CR to catch this. It is also necessary to always delay flushing if the last character is CR, to see if the next character is CR or LF.
ANSICON 
ANSICON provides ANSI escape sequences for Windows console programs. It
provides much the same functionality as ANSI.SYS
does for MS-DOS.
Requirements
- 32-bit: Windows 2000 Professional and later (it won't work with NT or 9X).
- 64-bit: AMD64 (it won't work with IA64).
How it Works
ANSICON injects a DLL into a process, hooking its functions.
Injection
One of three methods is used to inject the DLL.
-
LoadLibrary
viaCreateRemoteThread
for a running process. -
LdrLoadDll
viaCreateRemoteThread
for a 64-bit .NET AnyCPU process. -
Adding the DLL directly to the import table, otherwise.
Hooking
Hooking is achieved by modifying import addresses, or the return value of
GetProcAddress
.
Description
v1.89
Latest
Languages
C
99.7%
Batchfile
0.3%