As far as I can tell this is about debugging console apps.
The Lazarus "console output" window is plain text. Terminal/Ansi/Escape sequences have no effect.
Adding a vte, is a question of manpower. Or in other words: Patches welcome.
The "terminal output" window is a single unit (somewhere in the debugger directory). It has one event, that is called with any data from stdout, and one method it can call to send to the apps stdin. There is also already example code to send signals to the app (window size changed).
So to write a patch all you need is to know how to to the vte.
There are some workarounds too, but they are lacking a lot of comfort:
https://wiki.lazarus.freepascal.org/Debugger_Console_AppYou can use the gdbserver trick.
Or you can redirect to a pty (see the bottom of the page "ConsoleTty" option in the debugger properties)
Of course no workaround replaces the need for a proper solution. But as I said: manpower...