home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
progpas
/
tspas18.arj
/
TSUNTF.INT
< prev
next >
Wrap
Text File
|
1990-02-24
|
2KB
|
65 lines
{$B-,F-,I+,N-,V+}
{$S+}
{$R-}
{$D-}
(*
Timo Salmi UNiT F
A Turbo Pascal unit for readln with string editing
All rights reserved 19-Aug-89
Updated 4-Sep-89
Updated 24-Sep-89
TSUNTF first appears in release TSPAS13 of my Turbo Pascal units package.
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 TSUNTF;
(* ======================================================================= *)
interface
(* ======================================================================= *)
uses Dos,
Crt;
(* An enhanced readln with the possibility of editing input strings
using insert mode
The functional edit keys are
BackSpace
Del
CursorLeft
CursorRight
Home
End
Esc *)
procedure EDRDLN (prompt : string; var InputString : string);
(* This version gives the possibility of recalling a string by pressing
the CursorUp key. Insert key is also functional *)
procedure EDREADLN (prompt : string;
RecallString : string;
var InputString : string);