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

Sven Barth pascaldragon at googlemail.com
Sun Dec 2 09:59:01 CET 2018


Am So., 2. Dez. 2018, 08:29 hat Mr Bee via fpc-pascal <
fpc-pascal at lists.freepascal.org> geschrieben:

> – I want to avoid CRT unit as much as possible. I prefer raw pascal
> solution.
>

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

– The solution works across platforms, at least on Mac, Linux, and Windows.
>

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

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20181202/c9b94fc7/attachment.html>


More information about the fpc-pascal mailing list