Path: 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: Date: 30 Apr 91 17:40:10 GMT Organization: University of Oldenburg, Germany Lines: 27 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)-------------------------------------+