Article View: comp.os.msdos.programmer
Article #6009How to change the prompt?
From: Kai Buerhoop
Date: Tue, 30 Apr 1991 17:40
Date: Tue, 30 Apr 1991 17:40
27 lines
1497 bytes
1497 bytes
How can I change the prompt-string from within a program?
I tried, using turbo-c's getenv("PROMPT"), which returns a pointer
to that place in the memory, where the prompt-string is stored
(which is okay).
But seemingly, DOS creates a copy of the environment table, and the
getenv returns a pointer to the copied env-table.
So, when the program ends, DOS gets its old env-table, and all changes
were futile. :(=
So, how to change the original environment table?
Any solutions welcome (c, mod2 or assembler, please).
Thanx in advance.
Kai
--
+--------------------------------------------------------------------------+
| Kai L. Buerhoop, Brandsweg 29b, 2900 Oldenburg, FRG |
| Kai.Buerhoop@arbi.informatik.uni-oldenburg.de |
+--------------------------------------------------------------------------+
| How can I tell, that the past isn't a fiction designed to account for the|
|discrepancy between my immediate physical sensations and my state of mind?|
+----------------------------(D.Adams)-------------------------------------+
Technical Details
Message-ID:
<galad.673033210@aragorn>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!spool.mu.edu!uunet!math.fu-berlin.de!uniol!Kai.BuerhoopShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!spool.mu.edu!uunet!math.fu-berlin.de!uniol!Kai.Buerhoop From: Kai.Buerhoop@arbi.informatik.uni-oldenburg.de (Kai Buerhoop) Newsgroups: comp.os.msdos.programmer Subject: How to change the prompt? Keywords: prompt Message-ID: <galad.673033210@aragorn> Date: 30 Apr 91 17:40:10 GMT Organization: University of Oldenburg, Germany Lines: 27