MCPcopy Index your code
hub / github.com/adoxa/ansicon

github.com/adoxa/ansicon @v1.89

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.89 ↗ · + Follow
91 symbols 237 edges 9 files 34 documented · 37% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ANSICON Latest release

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 via CreateRemoteThread for a running process.

  • LdrLoadDll via CreateRemoteThread 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.

Core symbols most depended-on inside this repo

DEBUGSTR
called by 84
util.c
FlushBuffer
called by 22
ANSI.c
PushBuffer
called by 17
ANSI.c
SendSequence
called by 14
ANSI.c
set_pos
called by 13
ANSI.c
SetConsoleCursorPos
called by 12
ANSI.c
ac_wcstoul
called by 11
util.c
ac_sprintf
called by 11
util.c

Shape

Function 87
Class 4

Languages

C99%
C++1%

Modules by API surface

ANSI.c53 symbols
ansicon.c14 symbols
util.c13 symbols
injdll.c7 symbols
proctype.c2 symbols
procrva.c1 symbols
ansicon.h1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add ansicon \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page