home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.pascal:5331 alt.msdos.programmer:2352
- Newsgroups: comp.lang.pascal,alt.msdos.programmer
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!sun.rhrk.uni-kl.de!efes.physik.uni-kl.de!bootz
- From: bootz@efes.physik.uni-kl.de (Michael Bootz)
- Subject: Re: 3 questions
- Message-ID: <1992Sep11.132246.12645@rhrk.uni-kl.de>
- Sender: news@rhrk.uni-kl.de
- Organization: FB Physik, Universitaet Kaiserslautern, Germany
- References: <18ot9rINN67t@matt.ksu.ksu.edu>
- Date: Fri, 11 Sep 1992 13:22:46 GMT
- Lines: 27
-
- In article <18ot9rINN67t@matt.ksu.ksu.edu>, holland@matt.ksu.ksu.edu (Rich Holland) writes:
- > Question 1:
- > -----------
- > How do I determine if the user is at the command line? I've been thinking
- > about writing a TSR to intercept keypresses at the DOS command line and
- > expand TABs to full filenames (like tcsh does).
- >
- [Question 2..3 deleted]
- > --
- > Rich Holland | INTERNET: holland@matt.ksu.ksu.edu
- > 100 Jardine Terr, Apt A7 | BITNET : holland@ksuvm
- > Manhattan, KS 66502-3357 | UUCP : ...!rutgers!matt.ksu.ksu.edu!holland
- > char*p="char*p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
-
- If the actual PSP = PSP of command.com ==> user is at command line.
- (PSP= program segment prefix)
- see Ralf's Interrupt list,
- Int $21, fct $51 to get PSP
- Int $21, fct $52 for format of MCB (memory controll block)
- the MCB contains the name of a program, here command.com
- the MCB of an PSP is located 16 bytes before the PSP
-
- hope this helps
-
- Michael
- --
- e-mail: bootz@physik.uni-kl.de
-