Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!caen!uflorida!SORROW@MAPLE.CIRCA.UFL.EDU From: sorrow@oak.circa.ufl.edu Newsgroups: comp.os.msdos.programmer Subject: Command line completion via TAB key Message-ID: <0094A6B4.10A8D040@MAPLE.CIRCA.UFL.EDU> Date: 20 Jun 91 22:21:25 GMT Sender: news@uflorida.cis.ufl.EDU Reply-To: sorrow@oak.circa.ufl.edu Organization: University of Florida CIRCA VAX Cluster Lines: 37 I am building my own UNIX work a like environment for DOS, and one of the things that I would like is the ability to do command line completion via the TAB key. I know 4DOS does this, but using 4DOS is out of the question since it won't work with my configuration. Anyway, the two approaches I see are : when the tab key is pressed then scan the current directory for a closest match. OR... when the TSR is loaded, scan the current directory and save to a buffer. When CD is issued or when a file is deleted, renamed, etc. update the buffer. Check buffer when tab key is pressed. Which is recommended? Also, I wouldn't want to execute the TSR if I was, oh, in WordPerfect. How do programs like DOSEDIT know if they are in another program? It seens that DOSEDIT traps int 21 and catches all EXECs...is this correct? Finally, I have DOSEDIT and don't know anything about it! Is there way to get help on it, and how do I set up the size of the history buffer and set up aliases? Thanks, Brian /* Brian Hook -- MS-DOS Programmer for Contract ----------------------------------------------------------------- "Seamus, that's my dog...I saw her today at the reception...sorry, sixTEEN inches....better save the women and children first...but this one goes to 11! ..anymore of that plutonium nyborg?....there can be only ONE!....like a finger pointing to the moon....ease the seat back...one day closer to death */