SD Core for Windows WC2.0-0

SD TCL - Using the Full-Screen Pages

How to move around, choose, answer and get help on every full-screen page of SD: one set of keys for all of them.

Every full-screen page of SD - the home screen, the development tools (tool.files, tool.voc, tool.dict, tool.query, tool.bulk, tool.catalog, tool.test), the administrator's pages, sp.view and the dictionary form - is built the same way and answers the same keys. Learn them once here; each page's own help (F1) adds only what is particular to that page. What the pages are for is on their own pages: The Home Screen, The Development Tools, Asking the AI. To build a page of your own that works the same way, see the separate SD Text User Interface - Programmer's Guide set of this documentation.

The window#

A page needs a window of at least 140 columns by 43 lines. In a bigger window it uses the whole window: the lists show more rows and the boxes are wider. If the window is made smaller while a page is up, the page waits behind a warning that gives both sizes until the window is big enough again (Ctrl-Q, then y, leaves). A window that is too small when you start a page is refused in one line that says the size it found.

When SD starts in a classic console window smaller than 140 by 43, it makes the window 140 by 43, or as big as the screen allows (Getting Started, First run). A Windows Terminal window is left as it is: make it bigger yourself, or press F11 there for full screen.

What is on the screen#

Where What it is
The top row The menu bar: File first, Help last, and the page's own menus between. At the right end, the page's name and who you are (administrator, or name@account).
The middle The page's boxes: lists, a form, a text pane. When a page has two or more boxes that can take the keyboard, the one that has it is marked.
The AI> row Only when the AI is on for your account: the line where you ask the AI (below).
The last three rows A status line (what just happened, or why a key is not in use now), a border, and the row of keys: the page's main keys and what they do.

On a terminal without color, nothing depends on color: the box that has the keyboard and the chosen row are shown in reverse video.

The keys every page has#

Key Does
F1 Help on this page: what it is for, and every key it answers, including the ones not on the row at the foot. The help names the page of this guide that describes it.
F2 Find an action: a list of every entry of every menu, written Menu > Entry with its key. Type any part of a name to narrow the list, then Enter to do it, or Esc to close the list and do nothing. An entry that cannot be used now is marked (not now); choosing it only tells you why.
F10, Alt and a menu's letter, a click on the top row Open the menu bar.
Esc Close what the page has open - a filter, a sub-view, the output pane, a sub-menu. When nothing is open, Esc opens the menu bar on the first menu whose first entry is not Quit (on most pages the second), so Esc and then Enter never leaves a page by accident.
F6, Shift-F6 Move the keyboard to the next and the previous box, round and round. Where the AI is on for your account, the AI line at the foot of the page is one of the stops, after the last box. The same keys do this on every page and in the IDE.
Shift-F10 The action menu of the box that has the keyboard, in the middle of the screen (see below).
F5 Read everything again and draw the page again.
Ctrl-L Draw the whole page again, as it is, without reading anything.
Tab, Back-tab (Shift-Tab) Never move between boxes. In a form or a dialog they go from field to field; in the IDE's editor they indent and outdent; on tool.gates they move between the matrix's columns.
Ctrl-O The output of the commands this visit to the page ran: each command, and what it printed or why it was refused, newest first (View > Output). tool.jobs, tool.sessions and tool.test show it in a pane of the page that Ctrl-O shows and hides; every other page shows it in a window over the page, where typing narrows it and Enter or Esc closes it. The status line still says the result of the last one.
Ctrl-T The next color theme (View > Theme): blue, classic, mono, night, paper, in that order, skipping any your terminal cannot show. SD keeps your choice: every page, the IDE, SED, the debugger and SP.VIEW start in it from then on, in this account and in later sessions, until you choose another. Where you have not chosen one, the site's theme is used (SCREENTHEME, set by the administrator).
Ctrl-K The keys of this page, with what each does (Help > Keys).
View > Mouse Stop the terminal reporting the mouse, and start it again. While it reports the mouse, a click goes to SD and the terminal's own selection needs Shift held while you drag; with the mouse off you can select and copy text as at the prompt. The choice holds for every page and the IDE until you change it or sign off. It has no key.
Ctrl-Q Leave the page.

These keys mean the same thing everywhere: on every page, on the home screen, and in the IDE and SED. F5 draws the screen again there too; the IDE, SED and the debugger run a program with F9. Everything a page can do is also on its menus: a key is a short way to a menu entry, never the only way. The exceptions:

If your terminal does not send a key - a terminal may keep a key for itself (Windows Terminal keeps F11 for full screen and Alt+Enter as well) or send nothing for it - every action such a key does is also on a menu: press F10 or Esc, or F2 and type part of its name. The key tester tool.keys shows what your terminal sends.

On the administrator pages a letter is often a command (s suspends on tool.accounts, l logs out on tool.sessions), shown on the key row; it opens a box that asks first and runs nothing until you choose Run. On such a page / is how you find a row by typing: it asks for a text and goes to the next row that holds it, in any case, going round to the top. A box opened by a key waits until you let go of the key, so that holding the key down cannot answer it.

Inside a list, the arrow keys, Page Up, Page Down, Home and End move as you would expect; a letter usually jumps to the next row that begins with it, or narrows the list where the page says so.

Every action of a page is in its menu bar, and every entry shows its key: choosing the entry does exactly what the key does, so the menus are also a way to learn the keys. An entry that cannot be used now is dimmed, and cannot be chosen; its key is out of use too, and the status line says why when you press it.

The action menu is the same idea for one box. A right click on a box moves the keyboard to that box and opens its actions where you clicked; Shift-F10 opens the actions of the box that already has the keyboard. The last entry is always Find an action..., which opens the F2 list.

The mouse#

Where your terminal reports the mouse to SD, a click chooses a row, presses a button or opens a menu; the wheel scrolls the list under the pointer; a right click opens the action menu (above). tool.keys shows which keys your terminal sends.

Boxes that ask before anything happens#

A page never changes anything without asking first.

Forms#

A form is a list of labeled fields. Move between fields with Tab and Back-tab or the arrow keys, type to change one, and press Enter (or choose Accept) when it is complete. The page checks the values when you accept, and says in the status line which field is wrong and why; nothing is saved until the page's own save.

Picking from a list#

Where a page asks you to pick a file, a record or a saved query, it opens a pick list: a window with a heading row and columns. Type to narrow the list, move with the arrow keys, Enter takes the row and Esc closes the list taking nothing. A list that can delete (tool.query's saved queries, for example) deletes the chosen row with Del, after you type its name to confirm.

The AI line#

When the administrator has allowed the AI for your account, every page has an AI> row above the status line, with a horizontal rule between them. Press F6 until the cursor is there (it is the stop after the last box), choose AI > Ask the AI, or click the row; type what you want in your own words and press Enter. Nothing is sent yet: a box shows the provider, the size of all that will be sent, your request and anything of yours the page sends with it (a record's lines, a selection, earlier questions), with Cancel as the default; press s for Send. SD's own instructions to the AI are sent too and counted in the size, but not shown.

The answer comes in a box. It can propose an action of the page - you choose Accept or Reject, and anything that runs a command or changes something defaults to Reject. It never runs anything by itself, and it works with your account's rights only.

Follow up: the last button of an answer box asks a follow-up question. Your next question on the same page, within ten minutes, then carries up to the last three questions and answers with it, once - and the preview shows them in full before you send.

On the dictionary form the AI line can also propose values for the item's fields: each proposed value is shown in full, Reject is the default, and an accepted value goes into its field only if the form accepts it. Nothing is written until you accept the form and save.

The AI line never sees SD's own programs or system files; Asking the AI says exactly what is sent.

The IDE's Tools menu#

In the IDE, F10 then T opens the Tools menu: Files, Dictionary, Vocabulary, Queries, Bulk update, Programs and Tests. Each opens that page; when you leave it (Ctrl-Q, then Enter) you are back in the IDE with your unsaved text as you left it.

When something looks wrong#