Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.msdos.programmer > #405
| From | Ross Ridge <rridge@csclub.uwaterloo.ca> |
|---|---|
| Newsgroups | comp.os.msdos.programmer |
| Subject | Re: command history in dos - how? |
| Date | 2011-11-02 16:21 -0400 |
| Organization | University of Waterloo |
| Message-ID | <j8s8o6$d7s$1@rumours.uwaterloo.ca> (permalink) |
| References | <pan.2011.11.02.13.50.37@sejlgarnet.dk> <j8rljq$70e$1@rumours.uwaterloo.ca> <pan.2011.11.02.18.56.13@sejlgarnet.dk> |
Ross Ridge wrote: > I think you'd want to hook INT 21h, AH=0Ah, check that standard input > hasn't been directed, Thomas Jensen <lianergoist@sejlgarnet.dk> wrote: >Well, I must admit I don't know how to check that. Do you? Not off hand, but it may not really matter. Just use INT 21h, AH=06h DL=FFh or some similar function to read each character, and if it's been redirected you'll get that instead. >Well, I think is is a bit more complicated than that. I think Jim Leonard >is on the right track. Function 44h/int21h and its subfunctions seems to >be useful, and I will try to play with it and see if I can come up with >something. Well, I'm pretty sure hooking INT 21h, AH=0Ah is key here. Jim Leonard hasn't suggested anything remotely like an alternative. The only useful thing I can see you can do with an IOCTL here is maybe detect whether you're reading from the console device or not. Nothing magic. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] rridge@csclub.uwaterloo.ca -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/ db //
Back to comp.os.msdos.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
command history in dos - how? Thomas Jensen <lianergoist@sejlgarnet.dk> - 2011-11-02 13:50 +0000
Re: command history in dos - how? Ross Ridge <rridge@csclub.uwaterloo.ca> - 2011-11-02 10:54 -0400
Re: command history in dos - how? Thomas Jensen <lianergoist@sejlgarnet.dk> - 2011-11-02 18:56 +0000
Re: command history in dos - how? Ross Ridge <rridge@csclub.uwaterloo.ca> - 2011-11-02 16:21 -0400
Re: command history in dos - how? Jim Leonard <mobygamer@gmail.com> - 2011-11-02 08:28 -0700
Re: command history in dos - how? Thomas Jensen <lianergoist@sejlgarnet.dk> - 2011-11-02 19:03 +0000
Re: command history in dos - how? Ross Ridge <rridge@csclub.uwaterloo.ca> - 2011-11-02 16:31 -0400
Re: command history in dos - how? Rugxulo <rugxulo@gmail.com> - 2011-11-02 12:38 -0700
csiph-web