百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sc

> 编程语言
开源

sc 电子表格计算器

187 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

sc 电子表格计算器

sc Spreadsheet Calculator

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 gcc and most clang -Wall and -Werror compiler warnings fixed.
  • Made UBSAN and ASAN clean.
  • All sprintf, strcpy, and strcat replaced with snprintf, strlcpy, and strlcat.
  • ./configure script added and tested on BSD, Linux, and Solaris.

Functional extensions:

  • By default sc made a backup of the database file before overwriting it. This could only be changed at compile time. There are now options backup and !backup to control this.

  • Configured at compile time, sc always did update the history file ~/.sc_history. It is now possible to change this filename with the .scrc command histfile or 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 sc functions work well with NetBSD and Solaris curses but using the mouse requires ncurses. Using the mouse wheel additionally requires ncurses version ≥ 6.)

  • Add 'N' command to repeat last search in opposite direction

Documentation

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).

Getting the source

The source can be cloned with

bash
git clone https://github.com/n-t-roff/sc.git

and updated later with

bash
git pull

Compiling and Installation

Defaults for compiling and installation are set in the Makefile.in. A system dependent makefile is generated with

bash
./configure

If you'd like to do an out-of-source build, and your version of make supports VPATH (eg GNU make) then you can do the following:

bash
cd /path/to/obj
/path/to/source/configure # (full or relative path)

The source is compiled with

bash
make

(the curses or ncurses header files need to be installed, else make failes).

If make failes it may be possible that ./configure did not work correctly with the installed /bin/sh. If ksh is installed in such cases using

bash
make distclean
ksh configure
make

can solve the problem. (Alternatively sh in configures first line can be changed to ksh.)

The result is installed with

bash
make install

to the base directory /usr/local. This path can be changed in the Makefile.in. All generated files are removed with

bash
make distclean

A new target, clobber, has been added, which removes all make generated targets (not the Makefile nor other configure output)

bash
make clobber

The package can be uninstalled with

bash
make uninstall

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言