home *** CD-ROM | disk | FTP | other *** search
- unit SetAttU;
-
- interface
- function SetAttr(Blink,Intensity: boolean; FG,BG: integer):byte;
-
- implementation
-
- function SetAttr;
- var Temp: byte;
- begin
- Temp := 0;
- if Blink then inc(Temp,128);
- if Intensity then inc(Temp,8);
- inc(Temp,FG);
- Temp := Temp + (BG * 16);
- SetAttr := Temp;
- end;
-
- end.
-