sc is a free curses-based spreadsheet program that uses key bindings similar to vi and less.
For more information on sc please see the
README
file.
This is a fork of the latest source code version 7.16 from September 2002
which can be found at
http://www.ibiblio.org/pub/Linux/apps/financial/spreadsheet/sc-7.16.tar.gz.
The following
changes
had been made:
- Many bugs had been found, all of them are fixed now. (For reporting bugs please use the issue list.)
- All
gccand mostclang-Walland-Werrorcompiler warnings fixed. - Made
UBSANandASANclean. - All
sprintf,strcpy, andstrcatreplaced withsnprintf,strlcpy, andstrlcat. ./configurescript added and tested on BSD, Linux, and Solaris.
Functional extensions:
-
By default
scmade a backup of the database file before overwriting it. This could only be changed at compile time. There are now optionsbackupand!backupto control this. -
Configured at compile time,
scalways did update the history file~/.sc_history. It is now possible to change this filename with the.scrccommandhistfileor save no history at all with an empty command argument. -
Command
set mouse(e.g. in.scrc) enables- Selecting cells with the left mouse button
- Vertical scrolling with the mouse wheel
- Selecting the edit line position with the left mouse button
(In this case the shift key needs to be pressed for ‘cut and paste’. All
scfunctions work well with NetBSD and Solaris curses but using the mouse requires ncurses. Using the mouse wheel additionally requires ncurses version ≥ 6.)
Documentation is provided in short form integrated in sc
accessible with the ? key.
A complete documentation is available as a
manual page.
For better navigation
HTML
and
PDF
versions with table of contents and hyperlinks had been
created (using the
-man
macros of
Heirloom troff).
The source can be cloned with
git clone https://github.com/n-t-roff/sc.gitand updated later with
git pullDefaults for compiling and installation are set in the
Makefile.in.
A system dependent makefile is generated with
./configureThe source is compiled with
make(the curses or ncurses header files need to be installed,
else make fails).
If make fails it may be possible that ./configure did not work
correctly with the installed /bin/sh.
If ksh is installed in such cases using
make distclean
ksh configure
makecan solve the problem.
(Alternatively sh in configures first line can be changed to ksh.)
The result is installed with
make installto the base directory /usr/local.
This path can be changed in the
Makefile.in.
All generated files are removed with
make distcleanThe package can be uninstalled with
make uninstall