Path: utzoo!attcan!uunet!mcvax!ukc!eagle!icdoc!tgould!iwm From: iwm@asun3.ic.ac.uk (Ian Moor) Newsgroups: comp.os.vms Subject: Re: Terminal Control (ioctl) and curses on VMS Message-ID: Date: 5 Aug 88 19:57:14 GMT References: <316@sobeco.UUCP> <3560@bsu-cs.UUCP> Sender: news@doc.ic.ac.uk Organization: Dept. of Computing, Imperial College Lines: 13 In-reply-to: dhesi@bsu-cs.UUCP's message of 4 Aug 88 15:48:43 GMT Posting-Front-End: GNU Emacs 18.45.3 of Fri Jun 26 1987 on asun3 (berkeley-unix) Asking about curses on VMS: In article <316@sobeco.UUCP> mfp@sobeco.UUCP (Mark F. Proudman) writes: >I have seen some berkeley uucp code with #ifdef VMS's in it, and strange calls >to ioctl() with 8 or 9 arguments. Is this for real? There is a curses library for VMS C, bundled with VMS (you dont need to buy the VMS C compiler to use it). It is built on top of the screen manager (SMG$... library); unfortunately it doesnt implement the unix crmode/nocrmode i.e. keystroke at a time; you have to use SMG$GET_KEYSTROKE for this. It could be that the ioctl was a C macro calling SMG or maybe QIO; I should use SMG as it removes terminal type dependency -- SMG$GET_KEYSTROKE will decode function keys in a terminal independent way.