source: Console test/UConsole.pas

Last change on this file was 2, checked in by george, 15 years ago
  • Přidáno: Prvotní načtení tříd.
File size: 1.3 KB
Line 
1unit UConsole;
2
3interface
4
5uses
6 Types, Graphics, SysUtils;
7
8type
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
25implementation
26
27{ TConsole }
28
29procedure TConsole.ClearEol;
30begin
31
32end;
33
34procedure TConsole.ClearScreen;
35begin
36
37end;
38
39constructor TConsole.Create;
40begin
41end;
42
43destructor TConsole.Destroy;
44begin
45 inherited;
46end;
47
48procedure TConsole.GotoXY(X, Y: Integer);
49begin
50end;
51
52function TConsole.KeyPressed: Boolean;
53begin
54
55end;
56
57function TConsole.Read: string;
58begin
59 //Result := System.Read;
60end;
61
62function TConsole.ReadKey: Char;
63begin
64
65end;
66
67function TConsole.ReadLn: string;
68begin
69 //Result := System.Read;
70end;
71
72function TConsole.WhereX: Integer;
73begin
74end;
75
76function TConsole.WhereY: Integer;
77begin
78end;
79
80procedure TConsole.Write(Text: string);
81begin
82 System.Write(Text);
83end;
84
85procedure TConsole.WriteLn(Text: string);
86begin
87 Write(Text + #13#10);
88end;
89
90end.
Note: See TracBrowser for help on using the repository browser.