home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.3b1
- Path: sparky!uunet!ceilidh!dnichols
- From: dnichols@d-and-d.com (DoN. Nichols)
- Subject: Re: Problem with sc (spreadsheet calculator)
- Message-ID: <1993Jan23.201812.8708@d-and-d.com>
- Keywords: sc
- Sender: usenet@d-and-d.com (Usenet)
- Nntp-Posting-Host: shindig
- Organization: D and D Data, Vienna VA
- References: <1jmv4iINNdur@jhunix.hcf.jhu.edu>
- Distribution: usa
- Date: Sat, 23 Jan 1993 20:18:12 GMT
- Lines: 49
-
- In article <1jmv4iINNdur@jhunix.hcf.jhu.edu> jmartino@jhunix.hcf.jhu.edu (James R Martino) writes:
- >
- >The binary (sc) supplied with sc6.8.cpio.Z from osu.cis does not seem to
- >support the unixpc arrow keys - they move around well enough without any
- >data entered, but after a few cells are full, using arrow keys will
- >eventually result in catatonia, a "Memory error" and a core dump.
- >
- >I thought it might be nice to enable the arrow keys or the numeric
- >keypad to work with the unixpc, and have been studying the lex.c file.
- >Before messing with the code, however, I tried to see if I could build
- >the binary myself, using cc and gcc (and the Makefile), but found that
- >there are problems referencing functions - looks like missing or
- >incomplete libraries or headers. Some problems can be worked around,
- >but I can't deal with missing functions like tgetent, etc.
-
- Tgetent (and the other termcap functions) are in the shared lib, but
- not in the static lib (/lib/libc.a), so your choices are to build with the
- shared libs (some switch to gcc such as -shlib or -sharedlib to do this), or
- to get the source to the termcap library. (looking in my /usr/lib I find a
- libtermcap.a, but no clue as to how I got it there. Perhaps it came with
- the development system, perhaps I extracted it from shlib following someone
- else's posted advice, I don't remember.
-
- >Does anyone know how the sc binary on osu-cis was built? Was it done
- >on a unixpc? Was it done defining SIMPLE? Has anyone built this on the
- >unixpc? What kind of can of worms am I opening here? And what about Naomi...
-
- I have built sc on the 3b1, but it is sc version 6.15, so I suspect
- that you have an older version. I have also built it on the Suns I have,
- and I had to compile it in the SysV universe to make it easy to compile, so
- you should have no real problems once past the termcap stuff. (Almost
- everything in the termcap lib is in a single module, termcap.o The others
- are tgoto.o and tputs.o.)
-
- >Note: Two other methods of moving the cursor (h,j,k,l and ^P,^B,^F,^N) work
- >fine: I just thought I'd hack some improvements if it weren't too difficult.
-
- It also may depend on the entry in your /etc/termcap being up to
- date. There was an improved entry posted a couple of years ago. You also
- may need to upgrade your terminfo database for the 3b1.
-
- Good Luck
- DoN.
-
- --
- Email: <dnichols@d-and-d.com> | ...!uunet!ceilidh!dnichols
- <dnichols@ceilidh.beartrack.com>
- Donald Nichols (DoN.) | Voice (Days): (703) 704-2280 (Eves): (703) 938-4564
- --- Black Holes are where God is dividing by zero ---
-