⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sc.1

📁 早期freebsd实现
💻 1
📖 第 1 页 / 共 3 页
字号:
.\" Warning:  The string "pname" is converted to the true program name.\" by the makefile, throughout this document..\".\" Warning:  The order of presentation of commands largely matches the.\" help screen built into the program..\".\" Conventions:.\" - pname italicized and never uppercased (it's a proper name)..\" - Refer to lists of commands in the same order as introduced..\" - Command and function names bold when introduced, italicized in all.\"   other places if possible, or in `` '' if not..\" - Cell names italicized except when used in expressions; row numbers.\"   and column names not italicized..\" - Use `` '' rather than " " except referring to literal input or output..\" - TPs use default indent except for function names, then 18..\" - Smallify uppercase strings..\" - Avoid passive voice and third person..\" $Revision: 6.8 $.\".TH SC 1.SH NAMEsc \- spreadsheet calculator.SH SYNOPSIS.B sc[.B -c][.B -m][.B -n][.B -r][.B -x][.I file].\" ==========.SH DESCRIPTIONThe spreadsheet calculator.I scis based on rectangular tables much like a financial spreadsheet.When invoked it presents you with a tableorganized as rows and columns of cells.If invoked without a.I fileargument, the table is initially empty.Otherwise.I fileis read in (see the.I Getcommand below).Each cell may have associated with ita numeric value,a label string,and/or an expression (formula)which evaluates to a numeric value or label string,often based on other cell values..\" ----------.PPOptions are:.\" ----------.TP.B \-cStart the program with the recalculation being done in column order..\" ----------.TP.B \-mStart the program with automatic recalculation disabled.The spreadsheet will be recalculated only when the ``@'' command is used..\" ----------.TP.B \-nStart the program in quick numeric entry mode (see below)..\" ----------.TP.B \-rStart the program with the recalculation being done in roworder (default option)..\" ----------.TP.B \-xCause the.I Getand.I Putcommands (see below) to encrypt and decrypt data files..\" ----------.PPAll of these options can be changed with the.I ^Tand .I Scommands (see below) while.I scis running.  Options specified when.I scis invokedoverride options saved in the data file..\" ==========.SS "General Information".\" ----------The screen is divided into four regions.The top line is for entering commands and displaying cell values.The second line is for messages from.IR sc .The third line and the first four columns show the column and row numbers,from which are derived cell addresses, e.g..I A0for the cell in column A, row 0.Note that column names are case-insensitive: you can enter.I A0or.IR a0 ..\" ----------.PPThe rest of the screen forms a window looking at a portion of the table.The total number of display rows and columns available,hence the number of table rows and columns displayed,is set by.IR curses (3)and may be overridden by setting the.SM LINESand.SM COLUMNSenvironment variables, respectively..\" ----------.PPThe screen has two cursors:a cell cursor, indicated by a highlighted cell and a ``<'' on the screen,and a character cursor, indicated by the terminal's hardware cursor.The cell and character cursors are often the same.They differ when you type a command on the top line..\" ----------.PPIf a cell's numeric value is wider than the column width (see the.I fcommand), the cell is filled with asterisks.If a cell's label string is wider than the column width,it is truncated at the start of the next non-blank cell in the row, if any..\" ----------.PPCursor control commands and row and column commandscan be prefixed by a numeric argumentwhich indicates how many times the command is to be executed.You can type.I ^Ubefore a repeat count if quick numeric entry mode is enabledor if the number is to be enteredwhile the character cursor is on the top line..\" ----------.PPCommands which use the terminal's control key, such as.IR ^N ,work both when a command is being typed and when in normal mode..\" ==========.SS "Changing Options".\" ----------\0 \" exactly one blank line (hard to get).PD 0.TP.BI ^T oToggle options.This command allows you to switch the state of one option selected by.IR o .A small menu lists the choices for.I owhen you type.IR ^T .The options selected are saved when the data and formulas are savedso that you will have the same setup next time you enter thespreadsheet. .PD.RS.\" ----------.TP.B aAutomatic Recalculation.When set, each change in the spreadsheet causes the entire spreadsheetbe recalculated.  Normally this is not noticeable, but for very largespreadsheets, it may be faster to clear automatic recalculation mode andupdate the spreadsheet via explicit ``@'' commands.  Default is automatic recalculation on..\" ----------.TP.B cCurrent cell highlighting.If enabled, the current cell is highlighted(using the terminal's standout mode, if available)in addition to being marked by the cell cursor..\" ----------.TP.B eExternal function execution.When disabled, external functions (see.IR @ext ()below) are not called.This saves a lot of time at each screen update.External functions are disabled by default.If disabled, and external functions are used anywhere,a warning is printed each time the screen is updated,and the result of.IR @ext ()is the value from the previous call, if any, or a null string..\" ----------.TP.B nQuick numeric entry.If enabled,a typed digit is assumed to bethe start of a numeric value for the current cell,not a repeat count, unless preceded by.IR ^U ..\" ----------.TP.B tTop line display.If enabled,the name and value of the current cell is displayed on the top line.If there is an associated label string,the first character of the string valueis ``<'' for a leftstring or ``>'' for a rightstring (see below),followed by "\fIstring\fP" for a constant stringor.RI { expr }for a string expression.If the cell has a numeric value,it follows as.RI [ value ],which may be a constant or expression..\" ----------.TP.B xEncryption.See the.B \-xoption..\" ----------.TP.B $Dollar prescale.If enabled, all numeric.B constants(not expressions) which you enter are multipled by 0.01so you don't have to keep typing the decimal pointif you enter lots of dollar figures..RE.\" ----------\0 \" exactly one blank line (hard to get).PD 0.TP.B SSet options.  This command allows you to set various options.A small menu lists the options that cannot be changed through.I ^Tabove..PD.RS.TP.BR byrows /  bycolsSpecify the order cell evaluation when updating.  These options also affectthe order in which cells are filled (see .IR /f )and whether a row or column is cleared by an .I xcommand..TP.BI iterations =nSet the maximum number of recalculations beforethe screen is displayed again. .I Iterationsis set to 10 by default..TP.BI tblstyle =sControl the output of the .I Tcommand..I scan be:.B 0(default) to give colon delimited fields, with no .I tblcontrol lines;.B tblto give colon delimited fields, with.IR tbl (1)control lines;.B latexto give a.I LaTeXtabular environment; and.B texto give a.I TeXsimple tabbed alignment with ampersands as delimiters..PPOther.I Setoptions are normally used only in .I scdata files since they are available through .IR ^T .You can also use them interactively.TP.BR autocalc / !autocalcSet/clear auto recalculation mode..TP.BR numeric / !numericSet/clear numeric mode..TP.BR prescale / !prescaleSet/clear numeric prescale mode..TP.BR extfun / !extfunEnable/disable external functions..TP.BR cellcur / !cellcurSet/clear current cell highlighting mode..TP.BR toprow /  !toprowSet/clear top row display mode..RE.\" ==========.SS "Cursor Control Commands".\" ----------\0 \" exactly one blank line (hard to get).PD 0.TP.B ^PMove the cell cursor up to the previous row..PD.\" ----------.TP.B ^NMove the cell cursor down to the next row..\" ----------.TP.B ^BMove the cell cursor backward one column..\" ----------.TP.B ^FMove the cell cursor forward one column..\" ----------.TP.B "h, j, k, l"If the character cursor is not on the top line, these are alternate,.IR vi -compatiblecell cursor controls (left, down, up, right)..\" ----------.TP.B ^HIf the character cursor is not on the top line,.I ^His the same as.IR ^B ..\" ----------.TP.B SPACEIf the character cursor is not on the top line,the space bar is the same as.IR ^F ..\" ----------.TP.B TABIf the character cursor is on the top line,.SM TABstarts a range (see below).Otherwise, it is the same as.IR ^F ..\" ----------.TP.B "Arrow Keys"The terminal's arrow keys provide another alternate set of cell cursor controlsif they exist and are supported in the appropriate.I termcapentry.Some terminals have arrow keys which conflict with other control key codes.For example, a terminal might send.I ^Hwhen the back arrow key is pressed.In these cases, the conflicting arrow key performs the same functionas the key combination it mimics..\" ----------.TP.B ^Move the cell cursor up to row 0 of the current column..\" ----------.TP.B #Move the cell cursor down to the last valid row of the current column..\" ----------.TP.B 0Move the cell cursor backward to column A of the current row.This command must be prefixed with.I ^Uif quick numeric entry mode is enabled..\" ----------.TP.B $Move the cell cursor forward to the last valid column of the current row..\" ----------.TP.B bScan the cursor backward (left and up) to the previous valid cell..\" ----------.TP.B wScan the cursor forward (right and down) to the next valid cell..\" ----------.TP.BI ^E dGo to end of range.Follow.I ^Eby a direction indicator such as.I ^Por.IR j .If the cell cursor starts on a non-blank cell,it goes in the indicated direction until the last non-blank adjacent cell.If the cell cursor starts on a blank cell,it goes in the indicated direction until the first non-blank cell.This command is useful when specifying ranges of adjacent cells (see below),especially when the range is bigger than the visible window..\" ----------.TP.B gGo to a cell..I scprompts for a cell's name, a regular expression surrounded byquotes, or a number.If a cell's name such as.I ae122 or a the name of a defined range is given, the cell cursor goesdirectly to that cell.If a quoted regular expression such as ".I Tax Table " or ".I ^Jan [0-9]*$" is given,.I scsearches for a cell containing a string matching the regularexpression.See .I regex(3)or.I ed(1)for more details on the form of regularexpressions.If a number is given, .I scwill search for a cell containing that number.Searches for either strings or numbers proceed forward from thecurrent cell, wrapping back to a0 at the end of the table, andterminate at the current cell if the string or number is not found.The last.I gcommand is saved, and can be re-issued by entering .IR g<return> ..\" ==========.SS "Cell Entry and Editing Commands".\" ----------Cells can contain both a numeric value and a string value.Either value can be the result of an expression,but not both at once,i.e. each cell can have only one expression associated with it.Entering a valid numeric expressionalters the cell's previous numeric value, if any,and replaces the cell's previous string expression, if any,leaving only the previously computed constant label string.Likewise, entering a valid string expressionalters the cell's the previous label string, if any,and replaces the cell's previous numeric expression, if any,leaving only the previously computed constant numeric value..TP.B =Enter a numeric constant or expression into the current cell..I scprompts for the expression on the top line.The usual way to enter a number into a cell is to type ``='',then enter the number in response to the prompt on the top line.The quick numeric entry option, enabled through the.B \-noption or.I ^Tcommand, shows the prompt when you enter the first digit of a number(you can skip typing ``='')..\" ----------.TP.B <Enter a label string into the current cellto be flushed left against the left edge of the cell..\" ----------.IP \fB"\fP.PD 0.TP.B >Enter a label string into the current cellto be flushed right against the right edge of the cell..PD.\" ----------.PPStrings you enter must start with ".You can leave off the trailing " and.I scwill add it for you.You can also enter a string expressionby backspacing over the opening " in the prompt..\" ----------.TP.B eEdit the value associated with the current cell.This is identical to ``=''except that the command line starts out containingthe old numeric value or expression associated with the cell..\" ----------.TP.B EEdit the string associated with the current cell.This is identical to ``<'', ``"'', or ``>''except that the command line starts out containingthe old string value or expression associated with the cell..\" ----------.PPTo enter and edit a cell's number part, use the ``='' and.I ecommands.To enter and edit a cell's string part, use the ``<'', ``"'', ``>'', and.I Ecommands.See the sections below on numeric and string expressions for more information..\" ----------.TP.B xClear the current cell.Deletes the numeric value, label string, and/or numeric or string expression.You can prefix this command with a countof the number of cells on the current row to clear.  The current column isused if column recalculation order is set.Cells cleared with this command may be recalledwith any of the.I pullcommands (see below)..\" ----------.TP.B mMark a cell to be used as the source for the.I copycommand..\" ----------.TP.B cCopy the last marked cell to the current cell,updating row and column references in its numeric or string expression, if any..\" ----------.TP.B +If not in numeric mode, add the current numeric argument (default 1)to the value of the current cell.  In numeric mode, ``+'' introduces a newnumeric expression or value, the same as ``=''. .\" ----------.TP.B -If not in numeric mode, subtract the current numeric argument (default 1)from the value of the current cell.  In numeric mode, ``-'' introduces a new,negative, numeric expression or value, like ``=''. .\" ==========.SS "File Commands".\" ----------\0 \" exactly one blank line (hard to get).PD 0.TP.B GGet a new database from a file.If encryption is enabled,the file is decrypted before it is loaded into the spreadsheet..PD.\" ----------.TP.B PPut the current database into a file.If encryption is enabled,the file is encrypted before it is saved..\" ----------.TP.B WWrite a listing of the current database into a filein a form that matches its appearance on the screen.This differs from the.I Putcommand in that its files are intended to be reloaded with.IR Get ,while.I Writeproduces a file for people to look at.  Hidden rows or columnsare not shown when the data is printed..\" ----------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -