home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!mcsun!news.funet.fi!uwasa.fi!ts
- From: ts@uwasa.fi (Timo Salmi)
- Subject: Re: Capturing DOS prompt...
- Message-ID: <1992Sep13.071323.8586@uwasa.fi>
- Organization: University of Vaasa, Finland
- References: <1992Sep12.070015.13141@uxa.ecn.bgu.edu>
- Date: Sun, 13 Sep 1992 07:13:23 GMT
- Lines: 28
-
- In article <1992Sep12.070015.13141@uxa.ecn.bgu.edu> mudrc@uxa.ecn.bgu.edu (Daniel R. Crowson) writes:
- > I'm still having problems about how to capture the prompt within a
- > program and then 'outputting' it. I have a shell program, but I want
- > it to use the normal dos prompt ($p$g). I know you can get the prompt
- > by getenv('prompt'), but is there a way to output it?
-
- Let's try another tack. What is your underlying task at hand? Do
- you want to capture the original problem or is it that you wish to
- be able to manipulate the prompt when you shell out of your program?
- If it is the latter, then it is far from as simple as reading the
- environment variable. One needs to access the PSP and manipulate
- that, which is quite a complicated task.
-
- There is one alternative which I have not tested for the latter for
- this particular purpose, so it might not work although I cannot see
- outright why it wouldn't. I have a SETENVSH routine in my
- distrubuted TP units collection (/pc/ts/tspa*.zip) for setting an
- environment variable for the duration of a shelling. (It accesses
- the PSP).
-
- But note that this was guesswork, partly based on what I guess you
- might basically be needing this for.
-
- ..................................................................
- Prof. Timo Salmi
- Moderating at garbo.uwasa.fi anonymous FTP archives 128.214.87.1
- Faculty of Accounting & Industrial Management; University of Vaasa
- Internet: ts@uwasa.fi Bitnet: salmi@finfun ; SF-65101, Finland
-