Line | |
---|
1 | unit UConsole;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Types, Graphics, SysUtils;
|
---|
7 |
|
---|
8 | type
|
---|
9 | TConsole = class
|
---|
10 | procedure ClearScreen;
|
---|
11 | procedure ClearEol;
|
---|
12 | constructor Create;
|
---|
13 | destructor Destroy; override;
|
---|
14 | procedure GotoXY(X, Y: Integer);
|
---|
15 | function Read: string;
|
---|
16 | function ReadLn: string;
|
---|
17 | function ReadKey: Char;
|
---|
18 | function KeyPressed: Boolean;
|
---|
19 | function WhereX: Integer;
|
---|
20 | function WhereY: Integer;
|
---|
21 | procedure Write(Text: string);
|
---|
22 | procedure WriteLn(Text: string);
|
---|
23 | end;
|
---|
24 |
|
---|
25 | implementation
|
---|
26 |
|
---|
27 | { TConsole }
|
---|
28 |
|
---|
29 | procedure TConsole.ClearEol;
|
---|
30 | begin
|
---|
31 |
|
---|
32 | end;
|
---|
33 |
|
---|
34 | procedure TConsole.ClearScreen;
|
---|
35 | begin
|
---|
36 |
|
---|
37 | end;
|
---|
38 |
|
---|
39 | constructor TConsole.Create;
|
---|
40 | begin
|
---|
41 | end;
|
---|
42 |
|
---|
43 | destructor TConsole.Destroy;
|
---|
44 | begin
|
---|
45 | inherited;
|
---|
46 | end;
|
---|
47 |
|
---|
48 | procedure TConsole.GotoXY(X, Y: Integer);
|
---|
49 | begin
|
---|
50 | end;
|
---|
51 |
|
---|
52 | function TConsole.KeyPressed: Boolean;
|
---|
53 | begin
|
---|
54 |
|
---|
55 | end;
|
---|
56 |
|
---|
57 | function TConsole.Read: string;
|
---|
58 | begin
|
---|
59 | //Result := System.Read;
|
---|
60 | end;
|
---|
61 |
|
---|
62 | function TConsole.ReadKey: Char;
|
---|
63 | begin
|
---|
64 |
|
---|
65 | end;
|
---|
66 |
|
---|
67 | function TConsole.ReadLn: string;
|
---|
68 | begin
|
---|
69 | //Result := System.Read;
|
---|
70 | end;
|
---|
71 |
|
---|
72 | function TConsole.WhereX: Integer;
|
---|
73 | begin
|
---|
74 | end;
|
---|
75 |
|
---|
76 | function TConsole.WhereY: Integer;
|
---|
77 | begin
|
---|
78 | end;
|
---|
79 |
|
---|
80 | procedure TConsole.Write(Text: string);
|
---|
81 | begin
|
---|
82 | System.Write(Text);
|
---|
83 | end;
|
---|
84 |
|
---|
85 | procedure TConsole.WriteLn(Text: string);
|
---|
86 | begin
|
---|
87 | Write(Text + #13#10);
|
---|
88 | end;
|
---|
89 |
|
---|
90 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.