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

  1. Xref: sparky comp.lang.pascal:5331 alt.msdos.programmer:2352
  2. Newsgroups: comp.lang.pascal,alt.msdos.programmer
  3. 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
  4. From: bootz@efes.physik.uni-kl.de (Michael Bootz)
  5. Subject: Re: 3 questions
  6. Message-ID: <1992Sep11.132246.12645@rhrk.uni-kl.de>
  7. Sender: news@rhrk.uni-kl.de
  8. Organization: FB Physik, Universitaet Kaiserslautern, Germany
  9. References:  <18ot9rINN67t@matt.ksu.ksu.edu>
  10. Date: Fri, 11 Sep 1992 13:22:46 GMT
  11. Lines: 27
  12.  
  13. In article <18ot9rINN67t@matt.ksu.ksu.edu>, holland@matt.ksu.ksu.edu (Rich Holland) writes:
  14. > Question 1:
  15. > -----------
  16. >   How do I determine if the user is at the command line?  I've been thinking
  17. >   about writing a TSR to intercept keypresses at the DOS command line and
  18. >   expand TABs to full filenames (like tcsh does).  
  19. [Question 2..3 deleted]
  20. > -- 
  21. > Rich Holland              | INTERNET: holland@matt.ksu.ksu.edu
  22. > 100 Jardine Terr, Apt A7  | BITNET  : holland@ksuvm
  23. > Manhattan, KS  66502-3357 | UUCP    : ...!rutgers!matt.ksu.ksu.edu!holland
  24. > char*p="char*p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
  25.  
  26. If the actual PSP = PSP of command.com ==> user is at command line.
  27. (PSP= program segment prefix)
  28. see Ralf's Interrupt list, 
  29.   Int $21, fct $51 to get PSP
  30.   Int $21, fct $52 for format of MCB (memory controll block)
  31. the MCB contains the name of a program, here command.com
  32. the MCB of an PSP is located 16 bytes before the PSP
  33.  
  34. hope this helps
  35.  
  36. Michael
  37. -- 
  38.       e-mail: bootz@physik.uni-kl.de
  39.