
Technical Information Database
TI566D.txt Changing the border color in DOS text mode.
Category :General Programming
Platform :All
Product :Pascal All
Description:
Ever wonder how to change the color of the border
around your screen in DOS text mode? It's actually
very simple - just call DOS interrupt $10, function
$0B. This sample code illustrates how. You just drop
the BorderColor procedure into any of your DOS text
mode programs.
Program ChBorder;
procedure BorderColor(NewColor: byte); assembler;
{ simply call this procedure and pass it the number }
{ of the color to which you would like the text-mode }
{ border to change. }
asm
mov ah, 0Bh
mov bh, 00h
mov bl, NewColor
int 10h
end;
begin
BorderColor(2);
end.
Reference:
7/16/98 4:33:47 PM
|