Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!rochester!bbn!uwmcsd1!ig!agate!ucbvax!PHOBOS.CALTECH.EDU!tjp From: tjp@PHOBOS.CALTECH.EDU (Tim Pearson) Newsgroups: comp.os.vms Subject: SMG$READ_KEYSTROKE Message-ID: <880131135811.05k@Phobos.Caltech.Edu> Date: 31 Jan 88 21:58:25 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 28 The SMG$READ_KEYSTROKE procedure (in VMS v4.4) does not recognise control sequences generated by a VT200-series terminal set to "VT200 mode, 8-bit Controls"; it returns code 511 (unknown terminator) for the arrow keys and keypad keys. Does anyone know if this behavior is documented anywhere, or if 8-bit controls are (or will be) supported by a later version of VMS? [The following trivial program demonstrates the problem; it just types the code returned by SMG$READ_KEYSTROKE for each key you type.] integer ier, id, key integer smg$create_virtual_keyboard integer smg$read_keystroke ier = smg$create_virtual_keyboard(id,'SYS$COMMAND') if (ier.ne.1) callexit(ier) 10 ier = smg$read_keystroke(id,key) if (ier.ne.1) callexit(ier) type *,key goto 10 end Tim Pearson, Astronomy Dept, Caltech, Pasadena, California 91125, USA BITNET/EARN: tjp@citphobo SPAN/HEPNet/Caltech: Phobos::TJP or 6020::TJP Internet: TJP%Phobos@Hamlet.Caltech.Edu Telephone: +1 818 356-4980 -------