Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!gatech!hao!noao!arizona!robert From: robert@arizona.edu (Robert J. Drabek) Newsgroups: comp.os.vms Subject: Re: curses and termcap for VMS Message-ID: <1893@megaron.arizona.edu> Date: Wed, 26-Aug-87 18:26:28 EDT Article-I.D.: megaron.1893 Posted: Wed Aug 26 18:26:28 1987 Date-Received: Fri, 28-Aug-87 07:13:07 EDT References: <8708250209.AA10963@ucbvax.Berkeley.EDU> Organization: U of Arizona CS Dept, Tucson Lines: 29 Summary: reply/advice In article <8708250209.AA10963@ucbvax.Berkeley.EDU>, MCGUFFEY@MUVMS1.BITNET writes: > > I'm trying to port several pieces of software written for unix (e.g. rn and > less) and am having trouble with some of the termcap (or curses) routines. > I've only looked at less so far, but it seems the SMG routines are > significantly different from their unix counterparts. Before I dive in head > ... > Everything else seems to compile OK. (With the possible exception of some > #include VMS curses will only barely help you in your efforts. A few of the screen routines will run, but the keyboard stuff is broken. Reading the help screens on the C library has many comments about "only provided for Unix completeness" (or something like that) which I now interpret as meaning it doesn't work. I would suggest that you write your own routines and ignore VMS curses. If you are only running DEC VT[1-2]00's it's pretty simple. The keyboard routines are another story. It can be done fairly simply using something like ???$virtual_keyboard() (I am not on VMS right now and can't verify the function name) or you can go through the VMS QIO and other system calls. If no one else volunteers I have some routines I use in a couple of editors, etc. -- Robert J. Drabek Department of Computer Science University of Arizona Tucson, AZ 85721