-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIRCDIS.PAS
90 lines (79 loc) · 1.5 KB
/
IRCDIS.PAS
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Unit IRCDis;
Interface
Procedure SaveXY;
Procedure RestoreXY;
Procedure Clear;
Procedure StatusLine;
Procedure WriteList(S:String);
Procedure WriteChat(Fr,S:String; Flag:Char);
Implementation
Uses OpCrt,Dos,GenSubs,IRCVars,IO;
Procedure SaveXY;
Begin
SavX:=WhereX;
SavY:=WhereY;
End;
Procedure RestoreXY;
Begin
GoXy(SavX,SavY);
End;
Procedure StatusLine;
Begin
End;
Procedure Clear;
Begin
Cls;
ChatY:=1;
End;
Procedure WriteList(S:String);
Begin
GoXY(1,ChatY);
AColor(5);
Println(S);
ChatY:=WhereY;
AColor(7);
GoXY(1,24);
End;
Procedure ClearEoLn;
Var T:Byte;
CntB:Byte;
Begin
T:=Wherex;
For CntB:=WhereX to 78 Do Print(' ');
GoXy(T,WhereY);
End;
Procedure WriteChat(Fr,S:String; Flag:Char);
Begin
GoXy(1,ChatY);
Case Flag Of
'P':Begin
AColor(3); Print('<');
AColor(11);Print(Fr);
AColor(3); Print('> ');
AColor(7); Println(S);
End;
'S':Begin
AColor(3); Print('*** User: ');
AColor(15); Print(Fr+' ');
AColor(3); PrintLn(S);
AColor(7);
End;
'A':Begin
AColor(3); Print('* ');
AColor(15); Print(Fr);
AColor(3); Println(S);
AColor(7);
End;
'M':Begin
AColor(7); Print('[');
AColor(15); Print(Fr);
AColor(7); Print(']');
AColor(3); Println(S);
End;
End;
ChatY:=WhereY;
GoXY(1,24);
AColor(7);
End;
Begin
End.