brianc@cognos.uucp (Brian Campbell) (10/27/87)
In article <EVSfujy00VoDVs40=u@andrew.cmu.edu> jl42+@andrew.cmu.edu (Jay Mathew Libove) writes: ! 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 In article <358@ncrlnk.Dayton.NCR.COM> tbertels@ncrlnk.Dayton.NCR.COM (Tom Bertelson) writes: # 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). I think there is a simpler solution: get rid of the system() call and replace it with an gtty()/stty() sequence which does support CBREAK mode. # 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. Having ported and used both under XENIX for some time, I would agree that month is nicer to use; it does have its problems though. I would also suggest you try month -- you'll even get to see the phase of the moon! ! 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. I don't recall running into that problem either... -- Brian Campbell uucp: decvax!utzoo!dciem!nrcaer!cognos!brianc Cognos Incorporated mail: POB 9707, 3755 Riverside Drive, Ottawa, K1G 3Z4 (613) 738-1440 fido: (613) 731-2945 300/1200, sysop@1:163/8