📄 myunit.pas
字号:
unit myunit;
interface
uses crt;
procedure clearbkgr(color : byte);
procedure makewindow(x1, y1, x2, y2, color : byte);
procedure writexy(x, y : byte ; mess : string);
function ucase(st:string):string;
implementation
procedure clearbkgr(color : byte);
begin
textbackground(color);
clrscr;
end;
{ Invisible to unit user, this is internal function }
function fill(s : string; count : byte; what: char):string;
begin
fillchar(s,count+1,what);
s[0]:=chr(count);
fill:=s;
end;
procedure makewindow(x1, y1, x2, y2, color : byte);
var
s : string;
i : byte;
begin
textattr:=color;
s:=fill(s,x2-x1-1,#205); { '
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -