[fpc-pascal] How to get ANSI code command return value?

Mr Bee pak.lebah at yahoo.com
Sun Dec 2 15:19:22 CET 2018

Pada tanggal Min, 2 Des 2018 pukul 15.59 Sven Barth <
pascaldragon at googlemail.com> menulis:

> Um... The CRT unit is a raw Pascal solution?! Anyway, you can use that
> unit to see how the CRT unit did it.

Nope, I don't think so. CRT unit is Turbo Pascal's legacy unit. There are
some serious caveats with CRT unit, as explained here:

The Windows console does not support ANSI codes. So you'll need to use an
> abstraction API like the CRT unit anyway.

Windows now supports ANSI codes emulation, as explained here:


–Mr Bee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20181202/2f6095df/attachment.html>

More information about the fpc-pascal mailing list