Your account has all of these, from the moment it is installed. SD Core Solo for Windows used to hold them back from a standard account; that split is gone, and Solo has one account — see The account and its passwords. This page is a reference for what each of them does, not a list of what you have been given.
Two things, named as they come up below, still need more than the verb:
cataloging globally is refused to everyone, and editing the VOC directly needs
admin — see What actually gates these at the
foot of this page. The full-screen editors need nothing extra.
Compile, catalog and run#
basic |
compile SD BASIC source |
catalog |
add to the catalog |
delete.catalog |
remove from it |
compile.dict |
compile dictionary items |
run |
run a compiled program |
map |
show a program's map |
generate |
generate source |
phantom |
start a background process |
Nobody catalogs globally.
catalog ... global, a name beginning!,_or$, anddelete.catalogof a global entry, are refused whoever asks and whether or notadminis unlocked: The global catalog holds the SD Core server's programs from global.bp.out and is changed only by sync.global.catalog. On a managed computer the global catalog is the SD Core for Linux server's — see Managed mode. Private and local cataloging work as they always did: catalog your own programs withcatalog ... local.
Edit and debug#
ed |
the line editor. Needs nothing installed |
edit |
a full-screen editor — opens the record in Microsoft Edit |
micro |
a full-screen editor — opens the record in micro |
sed |
a full-screen editor that runs inside SD, with drop-down menus and color for SD BASIC and five other languages |
ced |
a full-screen editor for a record that is a data collection (JSON), one level at a time with the type of every element shown |
ide |
a full-screen workbench: the files and records, the program and its compile messages on one screen |
debug |
the BASIC debugger |
pstat · pdebug · pdump · dump |
process introspection |
Editors#
There are two, and they behave identically. The verb chooses the editor and nothing else changes:
edit |
Microsoft Edit |
micro |
micro |
Both come with SD, in %USERPROFILE%\SDCoreSolo\usr\bin, so nothing has to
be installed or downloaded for them.
edit bp myprog
micro bp myprog
edit dict customers name
Either verb writes the record to a working copy, opens the editor on it,
reads it back, and asks whether to save. For a bp record it then offers
the compile and the catalog.
Both run outside SD, so they need the os switch, which is off as
delivered (without it the verb says it is not available to the account; the
administrator turns it on with set.os.access os on, and ed, the line
editor, needs nothing of the kind). See
Operating system access.
Both are terminal editors, so both work over ssh as well as at the keyboard. A session with no terminal is refused — an API session or a piped script has nowhere to draw a full screen, and is told so.
sed, ced and ide run inside SD and draw the screen themselves, so they
need no operating-system permission and no editor installed; they need a terminal
window of at least 140 columns by 43 lines (the debugger and the home screen use
the same frame).
Only micro highlights SD BASIC. Microsoft Edit has no syntax
highlighting at all, which is the one real difference between the two
verbs:
micro |
statements, reserved words, intrinsic functions, @variables, $directives, labels, strings, numbers and comments |
edit |
plain text |
It applies to a bp record and to nothing else. SD names the working
copy so the editor can recognize the language — a record edited out of any
other file is treated as plain text, which is correct for a VOC entry or a
data record.
The word lists are generated from the compiler. They come out of the compiler's own tables of statements, reserved words and intrinsic functions, so the highlighting follows the language. If a name you expect is not colored, that is worth reporting.
ed is unaffected and is still there.
What the editors are good for, and what they are not#
They are text editors, so they suit a record whose content is lines of text:
BASIC source in a bp file |
what they are for |
| VOC records | fine — a VOC record is a few short fields (editing the VOC needs admin) |
| Dictionary records | fine for a simple one; see the limit below |
| Data records with multivalues | fine — see the tokens below |
| Data records with subvalues | fine — see the tokens below |
A field is a line and that part needs no explanation. SD writes the working copy with one field per line, so moving between fields is moving between lines.
A value mark is not a line, and neither is a subvalue mark. Both are control characters an editor cannot show, so each has a token you can type:
| Type | To get |
|---|---|
~~ |
a value mark |
~` |
a subvalue mark |
SD converts marks to tokens on the way into the editor and tokens back to marks on the way out, so multivalues and subvalues are both ordinary text while you are editing.
SMITH~~JONES~~BROWN
is a three-value field, and
RED~`BLUE~~GREEN
is two values, the first of which has two subvalues.
A record that cannot be written this way is refused, not mangled. Some
records would come back different from how they went in — one that already
contains ~~ as data, for instance, or one with a ~ sitting immediately
before a mark, where the tilde and the token run together. Before opening the
editor, SD converts the record and converts it back; if the result is not what
it started with, the verb refuses and names ed, which needs none of this.
Text marks are not converted, and are covered by the same refusal rather than being left to surprise you.
A compiled dictionary record is truncated to its first 15 fields while
you edit it, and recompiled with compile.dict when you save.
Editing the VOC needs admin, whichever editor does it — see
Administrator commands.
What an editor can reach#
An editor can open any file your Windows user can, inside the
SDCoreSolo folder or outside it. Neither can run a command, so neither is a
shell. On a Solo computer that is no more than you can do anyway; it matters
only for who you let use your account — see Security.
Over ssh#
A terminal editor is the point of an ssh session. An ssh session reaches SD through a terminal like any other, and SD hands the editor that terminal rather than reading it through a pipe.
If an editor misbehaves over ssh and not at the console, that is worth reporting with the terminal you connected from.
The removed full-screen editors are a different matter: update.record and
modify are gone and are not coming back. See
Not in SD Core Solo for Windows.
Files#
create.file · delete.file · clear.file |
the life of a file |
configure.file |
change a file's configuration |
analyze.file |
report on a file's internals |
fstat |
file statistics |
hsm |
hashed-file statistics monitoring |
set.trigger |
attach a trigger |
compile.dict |
compile the I-types of a dictionary |
create.file writes the file's entry into the VOC for you; that side effect
needs no admin.
Indexes#
create.index · delete.index · build.index · list.index
Bulk record editing#
copy |
copy records |
delete |
delete records |
reformat · sreformat |
reformat |
sort.item |
sort |
cname |
rename a file or change a record's name |
delete.common |
clear a common block |
What actually gates these#
| Changing the VOC directly | admin first: ed voc, a program's write or delete to the VOC, copy into it, .s and .d. Everything SD writes to the VOC itself, as a side effect, is not gated |
| The global catalog | nobody, admin or not — catalog global, delete.catalog of a global entry, a write to global.bp.out or gcat |
| The deny list (managed mode) | admin or the global password unlocks what the server denied; the SD Core for Linux server keeps that list — see Managed mode |
| File permissions | ordinary Windows file permissions on your own folder — see Security |
| Reaching the operating system | two switches, off as delivered: sh (the sh verb) and os (OS.EXECUTE, a path outside the account, the Python helper, edit and micro); the administrator turns each on with set.os.access (admin first) — see Operating system access |
Two things to know when you compile#
basic no longer creates an object file it can never open again.
Compiling into a reused file name previously produced an object SD could
not subsequently open.
Object code and the catalog are replaced on upgrade. The compiled programs,
the messages, include records and VOC templates are all overwritten by a new
release — see Upgrading and uninstalling.
Anything in your own account — your bp file and everything compiled from it —
survives an upgrade untouched.