5 procedure print(Text: string);
12 procedure print(Text: string);
18 h
:= GetStdHandle(STD_OUTPUT_HANDLE
);
20 attr
:= FOREGROUND_RED
or FOREGROUND_GREEN
or FOREGROUND_BLUE
;
21 SetConsoleTextAttribute(h
, attr
);
27 if Text[a
] = '^' then Continue
;
28 if Byte(Text[a
]) = 7 then Continue
;
30 if (a
= 1) or (Text[a
-1] <> '^') then
39 '1': attr
:= FOREGROUND_RED
;
40 '2': attr
:= FOREGROUND_GREEN
;
41 '3': attr
:= FOREGROUND_BLUE
;
42 '4': attr
:= FOREGROUND_BLUE
or FOREGROUND_RED
;
43 '5': attr
:= FOREGROUND_GREEN
or FOREGROUND_RED
;
44 '6': attr
:= FOREGROUND_BLUE
or FOREGROUND_GREEN
;
45 '7': attr
:= FOREGROUND_BLUE
or FOREGROUND_GREEN
or FOREGROUND_RED
;
49 if (a
> 2) and (Text[a
-2] = '^') then attr
:= attr
or FOREGROUND_INTENSITY
;
51 SetConsoleTextAttribute(h
, attr
)
57 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE
), FOREGROUND_RED
or FOREGROUND_GREEN
or FOREGROUND_BLUE
);