Article View: comp.sys.amiga.tech
Article #1504Help with console escape sequence
From: Darin Johnson
Date: Tue, 03 Oct 1989 02:58
Date: Tue, 03 Oct 1989 02:58
31 lines
1456 bytes
1456 bytes
I can't seem to get a WINDOW STATUS REPORT to be generated from a
console. Here is the sample program I am using.
#include <libraries/dos.h>
#include <stdio.h>
main() {
struct FileHandle *win;
unsigned char ob[64], i, max;
extern int EnableAbort = 1;
win = Open("CON:0/0/200/100/foobar", MODE_NEWFILE);
ob[0] = 0x9b;
ob[1] = 0x71;
Write(win, &ob, 2);
max = Read(win, &ob, 63);
for (i=0; i<max; i++)
printf("%d ", ob[i]);
printf("\n");
Close(win);
}
Nothing gets echoed back by the console, except what I type in
myself. In fact, even function keys and arrow keys do not echo
unless I use RAW. I've poured through the manuals and can't find any
hints. (and no, I can't go directly to the window, or even use
raw io packets, since eventually, this will have to work from
the UNIX side of a DNET connection)
Darin Johnson
djohnson@ucsd.edu
Technical Details
Message-ID:
<7183@sdcsvax.UCSD.Edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!unmvax!ncar!gatech!hubcap!ncrcae!ncr-sd!hp-sdd!ucsdhub!sdcsvax!beowulf!djohnsonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!unmvax!ncar!gatech!hubcap!ncrcae!ncr-sd!hp-sdd!ucsdhub!sdcsvax!beowulf!djohnson From: djohnson@beowulf.ucsd.edu (Darin Johnson) Newsgroups: comp.sys.amiga.tech Subject: Help with console escape sequence Message-ID: <7183@sdcsvax.UCSD.Edu> Date: 3 Oct 89 02:58:29 GMT Sender: nobody@sdcsvax.UCSD.Edu Reply-To: djohnson@beowulf.UCSD.EDU (Darin Johnson) Distribution: usa Organization: EE/CS Dept. U.C. San Diego Lines: 31