Skip to content

Latest commit

 

History

History
54 lines (46 loc) · 1.45 KB

sysop2z.pas

File metadata and controls

54 lines (46 loc) · 1.45 KB
 
Nov 18, 2000
Nov 18, 2000
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
(*****************************************************************************)
(*> <*)
(*> SYSOP2Z .PAS - Written by Eric Oman <*)
(*> <*)
(*> SysOp functions: System Configuration Editor -- "Z" command. <*)
(*> <*)
(*> <*)
(*****************************************************************************)
{$A+,B+,D-,E+,F+,I+,L+,N-,O+,R-,S+,V-}
unit sysop2z;
interface
uses
crt, dos,
{rcg11172000 no overlay under Linux.}
{overlay,}
cuser,
common;
procedure pocolors;
implementation
procedure pocolors;
var u:userrec;
c:char;
done,col:boolean;
begin
reset(uf); seek(uf,0); read(uf,u); close(uf);
col:=color in u.ac;
done:=FALSE;
repeat
cls;
sprint(#3#5+'Default color editor:');
nl;
print('A. Edit Multiple colors');
print('B. Edit B&W colors');
nl;
prt('Enter selection (A-B) : ');
onek(c,'QAB');
if c='Q' then done:=TRUE
else begin
if c='A' then u.ac:=u.ac+[color] else u.ac:=u.ac-[color];
cstuff(21,3,u);
end;
until (done) or (hangup);
if col then u.ac:=u.ac+[color] else u.ac:=u.ac-[color];
reset(uf); seek(uf,0); write(uf,u); close(uf);
end;
end.