Tips
- Ctrl-C stops the line a shell is running and undoes it. If a shell doesn't answer, switch to another with F1 to F4. The others keep running, and
rebootfrom any of them restarts the machine (tabs). 'name seeprints the source of a word, and'name openedits it in scrawl. Both work on any word defined in omega, which includes everything in root."sort" aproposlists every word whose name or description mentionssort. The index of words has the same information with a page for each word.- Tab completes a name at the prompt. A
',:or->in front of the name is kept. (prompt). backundoes the last line that worked, andredoundoes theback. Both go 64 lines deep (back).- A shell's definitions are its own. A word you define in shell 1 doesn't exist in shell 2 until it goes into root (names, units).
- An edit to root takes effect only if it builds. If it doesn't build, the old version stays in use and the error is shown (root build).
- The first run of a quote is interpreted and the second compiles it to machine code.
'name xrayshows what was generated, andbenchcompares the two (JIT, dis). - Integers never wrap.
2 1000 ^is exact, and compiled code switches to bignums at the same point the interpreter does (bignums). 0x2ais a hex literal and0b101010a binary one.basesprints a number in all of them (numbers, tools).[ ... ] watchreruns a quote twice a second until a key is pressed, andtimeittimes one run in ticks and CPU cycles.440 50 beepplays 440 Hz for half a second on the PC speaker.calcis an infix calculator with fixed point arithmetic, and it keeps its own history.dateleaves today's date as a string andcalprints the month. The clock shows UTC unless the machine was started with a local-time clock.themeslists the colour themes and'raw themeswitches to one. An installed disk remembers the choice (themes).14 255 0 0 rgbsets colour 14 to red. This recolours every tab (themes).logoslists the logos thatsyscan draw, and'haelide logopicks one (logos).'startup openedits what the first shell runs at boot, and'user openchanges the name shown bysys(startup)."build" titlerenames the tab that runs it. Programs do this while they run and putomegaback when they leave.2 tabreturns a list describing tab 2: its title, what it is doing and whether it is in front.- A line holds 200 characters. Put longer code in a definition with
'name open. - Locals set with
{ a b }or->nameexist only while a quote runs, so they can't be seen from the prompt after it finishes (names). 1 2 3 emptyclears the stack.depthcounts it, andpick,tuck,2dup,nipandrotrearrange it (stack).rootlists the programs in root, andappslists the ones meant to be run. Adding one is a line in theappsunit (apps).hexviewedits live memory.0xB8000is the memory of the text screen, which is redrawn from the tab on the next change, so it is a safe place to try it (memory).- The mouse belongs to QEMU's window after you click it, and Ctrl-Alt-G gives it back. A click on a tab title in the top bar switches tab (ps2).
docsopens the index of the help pages and"name" docopens one. Tab selects the next link, Enter follows it, Backspace goes back andqleaves. Enter on a line of code closes the viewer and runs the line at the prompt.- Disks are used only when you run
install. Until then nothing writes to one, so the live ISO is safe to try with a real disk attached.
See quirks for the things that surprise people, and troubleshooting when something doesn't work.
subverge