I have just been made aware of these interrupts:
http://www.ctyme.com/intr/rb-2820.htm
http://www.ctyme.com/intr/rb-2821.htm
Would I be correct in assuming that this bit:
5 raw (binary) mode
switches them all on or all off?
If not, any suggestions? The only alternative I know
of is to use this instead:
http://www.ctyme.com/intr/rb-2560.htm
Quite likely (depends on the driver receiving the request). But that influences *all* communication with that particular device *even after you close the program changing that flag*. IOW, don't do it.
If not, any suggestions? The only alternative I know
of is to use this instead:
http://www.ctyme.com/intr/rb-2560.htm
Thats the one you will still need to use, unless 4402 will actually return
an entered key (never used it, so I'm not sure). Its also the simpelest
one to use,
And as you do not want the input to be buffered (only returned after the "enter" key is pressed) you will have to handle the backspace and any other "undesirable" (control) characters yourself ...
That just means that it is my responsibility to put the
device back to the way I found it.
Also, it's not 4402 that I call, it's the normal read (3F).
However, it does wait for the full buffer to be entered instead
of returning on the first available keystroke. But I can live with that.
Set the # of to-be-retrieved chars to One ?
Any reason why you do not want to use that (simpler, redirectable) Int 21h, AH=07h method ?
SetConsoleMode is defined in kernel32.dll and I need to make
it do something in Pos* terms. I could have a variable in
kernel32.dll to remember what mode I am in, and then whenever
a read is done, reference that variable and switch to the
single char function. But I don't think that is as neat as just
having PosReadFile in the OS figure things out.
You're confusing me. You posted three requirements in your first post,
and provided that last link to a call which would satisfy all of that. But for some reason that is not at all clear to me you are rejecting it.
Why ? What *doesn't* it do that you need to have happening ?
Also, you've just responed to my suggestion to read just a single char at a time instead of a full buffers worth with a "yes". As if it was a question and you where already doing that. Which again doesn't make much sense.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 418 |
Nodes: | 16 (2 / 14) |
Uptime: | 13:41:50 |
Calls: | 8,803 |
Calls today: | 1 |
Files: | 13,302 |
Messages: | 5,969,069 |