What is wrong with the normal CRT unit? In linux the crt unit sets the terminal in raw mode and then does some special thing the get colored text on the screen and also to give other functionality to the programmer. I didn't like this very much, because i am used to C(and other languages) that uses ansi escape sequences to get colored text. That is why i wrote this little library. It does not implement all the ansi escape sequences, but the basics are there.
These are the all the functions of the library:
procedure mcFgColor(color:mcColor);
procedure mcBgColor(color:mcColor);
procedure mcAttr(attr:mcColor);
procedure mcClsLn();
procedure mcClsDisp();
procedure mcGotoXYH(x,y:mcValue);
procedure mcGotoXYf(x,y:mcValue);
They are all pretty self explanatory.
These are all the available colors:
mcCBlack
mcCRed
mcCGreen
mcCYellow
mcCBlue
mcCMagenta;
mcCCyan
mcCWhite
These are all the attributes that you can apply to the text:
mcAAttrOff
mcABold
mcAUnderscore
mcABlink
mcAReverse
mcAConcealed
You can get the library here:
https://github.com/el3ctr0lyte/LinuxCrtI hope people find this useful. Don't hesitate to contribute!