
────────────────────────────────────────
 SHEERPOWER V011.032.14  │  KEYS · HELP
────────────────────────────────────────
 File   📁 c:\users\misterdan\browser-agent\examples\regression\r_help_typed_cmds_file.txt
 Saved  ⭐ 0 Starred   🕘 0 History   🔤 40 Abbreviations
Skill levels
  1 - Beginner  new to programming
  2 - Newcomer  new to Sheerpower, not to programming
  3 - Regular   writes Sheerpower often
  4 - Fluent    tables, web handlers and arrays every day
  5 - Expert    knows the language well
skill n  chooses yours (1 to 5) and remembers it
>>> help cluster input
cluster input name '@file.csv', headers 1: cities

Loads a CSV spreadsheet into a cluster, given the file name, the number of header rows, and the cluster; numeric fields use val()'s number-extraction rules (e.g. $500 or 100ms). It can also input JSON, TSV and X12 files.

>>> HELP  Cluster Input
cluster input name '@file.csv', headers 1: cities

Loads a CSV spreadsheet into a cluster, given the file name, the number of header rows, and the cluster; numeric fields use val()'s number-extraction rules (e.g. $500 or 100ms). It can also input JSON, TSV and X12 files.

>>> help input
input 'Prompt': var [, var...]

Prints any prompt and waits for the user, then assigns the typed, comma-separated data items to the variables; wrong-type data raises an exception and reprompts, and a bare Enter gives 0 for a numeric and "" for a string.

Watch out: a COLON separates the prompt and options from the variables

Example:
  print "Press ENTER to exit"
  line input dummy$
prints:
  Press ENTER to exit

>>> help print len(
len(str_expr)

Returns the length of a string as an integer.

Watch out: strings are BYTES: len() counts bytes, so one UTF-8 accented letter counts 2

Example:
  dim names$(*)
  fill names$ with "cy", "Ann", "bob"
  print ucase$(names$)               ! CY   ANN  BOB
  print len(names$)                  ! 2  3  3
  print filter(names$, len(names$) > 2)          ! Ann  bob
  dim clean$(*)
  clean$ = ucase$(trim$(names$))     ! maps nest
  print stats$sum(len(names$))       ! 8
prints:
  CY   ANN  BOB
  2  3  3
  Ann  bob
   8

>>> help print 'zq' + 'xw'
print i; "..."

Statement that evaluates and displays one or several expressions; several expressions are best separated with semi-colons (no string concatenation needed); a bare print outputs an empty line.

Watch out: + joins strings only: separate print items with ; or wrap the number in str$()

Example:
  print (0.1 + 0.2) - 0.3
prints:
   0

>>> help zzqqxx
No help matches zzqqxx

>>> help keys
The console's keys   (the prompt is  >>>  ; <enter> runs the command)

Editing the line
  - <left> <right>      move along the line -- a long line wraps onto the
                        rows below, and the arrows go across them
  - <end>               move to the end of the line
  - a click             put the cursor on that character of the line
  - <backspace> <del>   erase the character before / under the cursor
  - ctrl/j              delete the word before the cursor
  - ctrl/u              clear to the start of the line
  - ctrl/a              toggle insert / overwrite
  - ctrl/c              copy the selected text
  - ctrl/w              redraw the screen
  - ctrl/+ ctrl/-       the window and its text larger / smaller (remembered)
  - ctrl/0              the window back to its normal size

Completing
  - <tab>               complete the word: a keyword, option, function,
                        variable, cluster, or a cluster's member after ->
  - f1                  help for the word at the cursor: the statements and
                        functions that match, the selected one's form, use
                        and an example that ran beside them; type to search,
                        <esc> closes it (a halted program: f1 = step over)
  - ctrl/e              pick an emoji: the starred first, then the last 20
                        used, then the most used; type to search, <enter>
                        inserts it, ctrl/s stars it, <esc> closes the list
  - name.<enter>        your abbreviation: its text appears on the next line --
                        <enter> runs it, <ctrl/u> erases it, or edit it first
  - .<enter>            the Abbreviations menu: pick one, its text appears
  - {table} holes       in an abbreviation: <tab> jumps to the next hole,
                        <shift/tab> back; {rate: 0.12} = a default; {nl} lands
                        as \ so the whole block is one runnable line; a
                        {name} value fills every later {name}

Remembering
  - <up> <down>         walk back and forth through earlier commands;
                        <down> past the newest: the line you were typing
  - <home>              recall the earlier command that starts as typed
  - ctrl/r              search the history: a list over the screen, starred
                        first, then newest, each with its age; what you type
                        is found anywhere in a command -- type more to narrow
                        it, <up> <down> to move, <enter> puts the command on
                        the line, <esc> leaves, ctrl/s stars; after a ~ the
                        letters need not be contiguous: ~gneve finds Genevieve
  - ctrl/s              star / un-star the command on the line, or the
                        abbreviation whose name is on the line
  - <pgup> <pgdn>       walk the recall list from where you last left it

Running
  - <enter>             run the line
  - alt/b               halt a running program and enter the console there
  - <esc> f1 f2 f3      when halted:  step, step over, step, step out
  - ctrl/z              leave the console

Console words
  - help                open the getting-started page
  - help <words>        the help f1 gives for those words
  - edit                edit this source code
  - []                  start adding lines to the program;  <esc> stops
  - keys                this list
  - skill               the five skill levels, yours marked
  - skill n             set your skill level, 1 to 5 (remembered)
  - ?name               inspect a variable, array or cluster
  - ?expr               its type and value
  - name. = text        define an abbreviation;  name. = (nothing) removes it
  - *name. = text       a starred abbreviation;  *name. toggles the star

>>> keys
The console's keys   (the prompt is  >>>  ; <enter> runs the command)

Editing the line
  - <left> <right>      move along the line -- a long line wraps onto the
                        rows below, and the arrows go across them
  - <end>               move to the end of the line
  - a click             put the cursor on that character of the line
  - <backspace> <del>   erase the character before / under the cursor
  - ctrl/j              delete the word before the cursor
  - ctrl/u              clear to the start of the line
  - ctrl/a              toggle insert / overwrite
  - ctrl/c              copy the selected text
  - ctrl/w              redraw the screen
  - ctrl/+ ctrl/-       the window and its text larger / smaller (remembered)
  - ctrl/0              the window back to its normal size

Completing
  - <tab>               complete the word: a keyword, option, function,
                        variable, cluster, or a cluster's member after ->
  - f1                  help for the word at the cursor: the statements and
                        functions that match, the selected one's form, use
                        and an example that ran beside them; type to search,
                        <esc> closes it (a halted program: f1 = step over)
  - ctrl/e              pick an emoji: the starred first, then the last 20
                        used, then the most used; type to search, <enter>
                        inserts it, ctrl/s stars it, <esc> closes the list
  - name.<enter>        your abbreviation: its text appears on the next line --
                        <enter> runs it, <ctrl/u> erases it, or edit it first
  - .<enter>            the Abbreviations menu: pick one, its text appears
  - {table} holes       in an abbreviation: <tab> jumps to the next hole,
                        <shift/tab> back; {rate: 0.12} = a default; {nl} lands
                        as \ so the whole block is one runnable line; a
                        {name} value fills every later {name}

Remembering
  - <up> <down>         walk back and forth through earlier commands;
                        <down> past the newest: the line you were typing
  - <home>              recall the earlier command that starts as typed
  - ctrl/r              search the history: a list over the screen, starred
                        first, then newest, each with its age; what you type
                        is found anywhere in a command -- type more to narrow
                        it, <up> <down> to move, <enter> puts the command on
                        the line, <esc> leaves, ctrl/s stars; after a ~ the
                        letters need not be contiguous: ~gneve finds Genevieve
  - ctrl/s              star / un-star the command on the line, or the
                        abbreviation whose name is on the line
  - <pgup> <pgdn>       walk the recall list from where you last left it

Running
  - <enter>             run the line
  - alt/b               halt a running program and enter the console there
  - <esc> f1 f2 f3      when halted:  step, step over, step, step out
  - ctrl/z              leave the console

Console words
  - help                open the getting-started page
  - help <words>        the help f1 gives for those words
  - edit                edit this source code
  - []                  start adding lines to the program;  <esc> stops
  - keys                this list
  - skill               the five skill levels, yours marked
  - skill n             set your skill level, 1 to 5 (remembered)
  - ?name               inspect a variable, array or cluster
  - ?expr               its type and value
  - name. = text        define an abbreviation;  name. = (nothing) removes it
  - *name. = text       a starred abbreviation;  *name. toggles the star

>>> help^R
  History
   1. help keys
   2. help zzqqxx
   3. help print 'zq' + 'xw'
   4. help print len(
   5. help input
   6. HELP  Cluster Input
   7. help cluster input
  menu> 

>>> keys^R
  History
   1. help keys
  menu> 

>>> 

>>> 