home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!uwm.edu!csd4.csd.uwm.edu!randyd
- From: randyd@csd4.csd.uwm.edu (Randall Elton Ding)
- Newsgroups: comp.lang.pascal
- Subject: Re: I/O REDIRECTION IN A TURB
- Date: 26 Dec 1992 20:18:03 GMT
- Organization: Computing Services Division, University of Wisconsin - Milwaukee
- Lines: 30
- Message-ID: <1hielrINN5vn@uwm.edu>
- References: <1023.6.uupcb@lill.frmug.fr.mugnet.org>
- NNTP-Posting-Host: 129.89.7.4
-
- In article <1023.6.uupcb@lill.frmug.fr.mugnet.org> vanney.raphael@lill.frmug.fr.mugnet.org (Vanney Raphael) writes:
- >SD> My questions are :
- >
- >SD> 1. Does somebody know how TP I/O is implemented (or where on
- >SD> the net such information may be found) ?
- >
- >SD> 2. Is there a more or less elegant (and reliable) way to redirect
- >SD> I/O that will work BOTH for TurboPascal and DOS ?
- >
- Hi, I'm not sure who made the origional post, the message was deleted from
- my system. However if this person or anyone is interested in a UNIT which
- I wrote a fiew months ago to do this, I will gladly supply the source
- via Email.
-
- The unit does the following...
- (1) redirects output to another device or if a path is specified, a file.
- (2) redirects input from another device or a file.
- (3) has printeron/printeroff commands, so the {lst} parameter is not needed.
- (4) allows you to change printer output ports.
- (5) automatically checks to make sure a valid device or file has been
- selected for input/output, and returns an error code if generated.
- (6) fully supports the crt unit driver.
- (7) it's smart enough to remember the previous driver, so when your done
- let's say with writing output to a file, the command restoreoutput
- will redirect the output back to the driver which was active before
- data was sent to the file.
-
-
- Randy. randyd@csd4.csd.uwm.edu
-
-