2
Free Pascal port of the OpenPTC C++ library.
3
Copyright (C) 2001-2003 Nikolay Nikolov (nickysn@users.sourceforge.net)
4
Original C++ version by Glenn Fiedler (ptc@gaffer.org)
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library; if not, write to the Free Software
18
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
Constructor TPTCBaseConsole.Create;
24
FReleaseEnabled := False;
27
Procedure TPTCBaseConsole.open(Const _title : String);{ Overload;}
33
Procedure TPTCBaseConsole.open(Const _title : String; Const _format : TPTCFormat);{ Overload;}
36
open(_title, _format, 0);
39
Procedure TPTCBaseConsole.open(Const _title : String; _width, _height : Integer;
40
Const _format : TPTCFormat);{ Overload;}
43
open(_title, _width, _height, _format, 0);
46
Procedure TPTCBaseConsole.open(Const _title : String; Const _mode : TPTCMode);{ Overload;}
49
open(_title, _mode, 0);
52
Function TPTCBaseConsole.KeyPressed : Boolean;
61
If internal_PeekKey(k) = False Then
63
If FReleaseEnabled Or k.Press Then
72
Procedure TPTCBaseConsole.ReadKey(k : TPTCKey);
77
Until FReleaseEnabled Or k.Press;
80
Function TPTCBaseConsole.PeekKey(k : TPTCKey) : Boolean;
92
Procedure TPTCBaseConsole.ReadKey;