| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | STDIN question |
Hello Paul! 12 Dec 94, Jonathan de Boyne Pollard writes to Paul Goedicke: ZZ>> >> I'm trying to pass the command string "[F10]" to >> a DOS communications program that must be shut down properly. ZZ>> JdBP> The best that you could probably do is somehow trigger off a TSR in JdBP> that session that primes the BIOS keyboard buffer, a la KEYSTACK. JdBP> I cannot off hand think of a means whereby you could trigger the TSR JdBP> from *outside* the VDM, though, since VDMs don't have APIs for most of JdBP> the OS/2 IPC primitives, such as semaphores or queues, and a TSR JdBP> wouldn't be much use if it blocked the whole session on a read of a JdBP> named pipe. This isn't quite right. There is support for named pipes *and* semaphores in a VDM. How official it is, is another matter. However, if you look in Ralf Brown's interrupt list (the one I have is version 41), the way in which you can access semaphores is listed. It is not very well documented in the interrupt list, but maybe using this information and the Control Program Guide, you should be able to set up a named event semaphore which you can then poll from a TSR. I'm working on how to do this (well, I was bored!). It won't be a very nice way of getting the job done (stuffing values into the keyboard buffer is certainly not very elegant), but it should be sufficient to solve your problem without degrading performance. Oh, btw, the semaphore API is interrupt 21h, function 64h. The API is listed in INTERRUP.E which is file 'B' (i.e. INTER41B.ZIP). Hope this helps somewhat, Richard. --- GoldED 2.40* Origin: Floating Point/2 (2:250/109.10) SEEN-BY: 12/2442 620/243 632/348 640/820 690/660 711/409 410 413 430 807 808 SEEN-BY: 711/809 934 942 949 712/353 515 713/888 800/1 @PATH: 250/109 25/10 250/107 255/1 440/4 141/209 270/101 396/1 3615/50 229/2 @PATH: 12/2442 711/409 808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.