home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5283 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.3 KB  |  29 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!mcsun!news.funet.fi!uwasa.fi!ts
  3. From: ts@uwasa.fi (Timo Salmi)
  4. Subject: Re: Getting the prompt from DOS?
  5. Message-ID: <1992Sep10.055430.3941@uwasa.fi>
  6. Organization: University of Vaasa, Finland
  7. References: <1992Sep10.015325.26026@uxa.ecn.bgu.edu>
  8. Date: Thu, 10 Sep 1992 05:54:30 GMT
  9. Lines: 18
  10.  
  11. In article <1992Sep10.015325.26026@uxa.ecn.bgu.edu> mudrc@uxa.ecn.bgu.edu (Daniel R. Crowson) writes:
  12. >  Is there any easy way to retrieve the prompt from dos in TP?  I'd like
  13. >  to be able to retrieve it and write it out.
  14.  
  15. The prompt is stored in an environment variable so you can use the
  16. GetEnv keyword (see your TP manual if you happen not to be familiar
  17. with it).  But the prompt is given as a code (eg $p$g) so that if
  18. you wish to read the outcome (eg C:\MYDIR> ) then that is more
  19. complicated.  I can't think at the moment of a way to do it (there
  20. must be one eg by reading it directly from the screen), but one
  21. could, of course, interpret the envirinment variables contents.  The
  22. prompt codes are well known.
  23.  
  24. ..................................................................
  25. Prof. Timo Salmi
  26. Moderating at garbo.uwasa.fi anonymous FTP archives 128.214.87.1
  27. Faculty of Accounting & Industrial Management; University of Vaasa
  28. Internet: ts@uwasa.fi Bitnet: salmi@finfun   ; SF-65101, Finland
  29.