Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!gatech!hubcap!ncrcae!ncr-sd!ncrlnk!tbertels From: tbertels@ncrlnk.Dayton.NCR.COM (Tom Bertelson CTSP) Newsgroups: comp.sources.bugs Subject: Re: vcal on SCO Xenix Message-ID: <358@ncrlnk.Dayton.NCR.COM> Date: Tue, 20-Oct-87 09:47:53 EDT Article-I.D.: ncrlnk.358 Posted: Tue Oct 20 09:47:53 1987 Date-Received: Wed, 21-Oct-87 21:39:43 EDT References: Reply-To: tbertels@ncrlnk.Dayton.NCR.COM (Tom Bertelson) Organization: Corp. Tech. Support & Planning, NCR, Dayton, Ohio Lines: 36 In article jl42+@andrew.cmu.edu (Jay Mathew Libove) writes: >I FTP'd "vcal" from eddie.mit.edu (src/local/vcal/) and attempted to port >it to SCO Xenix. I am having trouble in two areas: > >1) the terminal modes are set by a system() call - the BSD version does >a system("stty -cbreak -echo"). Xenix doesn't have cbreak. The closest I >have so far got it to working was to do a "stty -icanon -echo" but this >only updates the screen every fourth character, though it does retain >all the characters typed. However, upon exit, doing "stty sane echoe" >leaves the terminal in screwey mode (no echo, ignore 3 of 4 whitespaces...) >Any thoughts on this one world? I had the same problem. Try "stty -icanon -echo min '^a' to go into cbreak mode, and "stty icanon echo eof '^d'" to return to normal. The min-eof business is what controls the number of characters read before processing. See termio(7). > Is the one from eddie.mit.edu really old or something? Thanks! Yes, vcal is old. Somewhere there's a rewrite called "month". I never ported it to Xenix, but it looked a little cleaner and had some additional features. Try the comp.sources.unix archives for that one. >2) Upon exit, the program gets an error trying to write (null) file - >is there a directory that doesn't exist under Sys5 that does exist by >default under BSD where calendar files might go? Hmmm... I don't remember that one. Try touching $HOME/.appointments before running vcal. Hope this helps. -- Tom Bertelson Tom.Bertelson@Dayton.NCR.COM ...!ncr-sd!ncrlnk!tbertels