home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
progpas
/
tspas18.arj
/
TSUNTG.INT
< prev
next >
Wrap
Text File
|
1990-02-24
|
3KB
|
81 lines
{$B-,D-,F-,I+,N-,R-,S+,V+}
(*
Timo Salmi UNiT G
A Turbo Pascal 5.0 unit of miscellania
All rights reserved 26-Nov-89
Updated 6-Dec-89
This unit may be used and distributed freely for PRIVATE, NON-COMMERCIAL,
NON-INSTITUTIONAL purposes, provided it is not changed in any way. For
ANY other usage, contact the author.
The units are under development. Comments and contacts are solicited. If
you have any questions, please do not hesitate to use electronic mail for
communication.
InterNet address: ts@chyde.uwasa.fi (preferred)
Funet address: GADO::SALMI
Bitnet address: SALMI@FINFUN
FidoNet address: 2:515/1 (Micro Maniacs Opus, To: Timo Salmi)
The author shall not be liable to the user for any direct, indirect or
consequential loss arising from the use of, or inability to use, any unit,
program or file howsoever caused. No warranty is given that the units and
programs will work under all circumstances.
Timo Salmi
Professor of Accounting and Business Finance
School of Business Studies, University of Vaasa
P.O. BOX 297, SF-65101 Vaasa, Finland
*)
unit TSUNTG;
(* ======================================================================= *)
interface
(* ======================================================================= *)
uses Dos;
(* Number of diskette drives on the system *)
function DRIVESFN : byte;
(* The name of the first diskette drive on the system *)
function FDRIVEFN : char;
(* Is a media present in the given drive *)
function INDRIVFN (drive : char) : boolean;
(* As Turbo Pascal GoToYX but does not require the Crt unit *)
procedure GOATXY (x, y : integer);
(* As Turbo Pascal WhereX but does not require the Crt unit *)
function WHEREXFN : byte;
(* As Turbo Pascal WhereY but does not require the Crt unit *)
function WHEREYFN : byte;
(* As Turbo Pascal KeyPressed but does not require the Crt unit *)
function KEYPREFN : boolean;
(* As Turbo Pascal ReadKey but does not require the Crt unit *)
function READKEFN : char;
(* This function resembles the traditional Basic inkey function.
It returns the pressed character with no echo. Special chacarters
are returned in the usual paired manner (chr(0) + code).
If timelimit seconds is exceeded timeout becomes true (and a
chr(0) is returned by inkeyfn). *)
function INKEYFN (timelimit : real; var timeout : boolean) : char;
(* Reverse the colors of an area.
This is slow. For fast screen routines see TSUNTA. *)
procedure REVAREA (x1, y1, x2, y2 : integer);
(* Direct write and writeln to printer *)
procedure USEPRN;
(* Direct write and writeln to the screen *)
procedure USECON;