new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Deno · Reference · all subjects

cli commands/repl

39 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

deno repl keyboard shortcut Meta-0, 1, ..., -

Pressing Meta-0, Meta-1, etc., specifies a digit to the argument. Meta-_ starts a negative argument.

deno repl keyboard shortcut Meta-< or Meta->

Pressing Meta-< moves to the first entry in history. Pressing Meta-> moves to the last entry in history.

deno repl keyboard shortcut Meta-Backspace

Pressing Meta-Backspace kills from the start of the current word. If between words, it kills to the start of the previous word.

deno repl keyboard shortcut Meta-C

Pressing Meta-C capitalizes the current word.

deno repl keyboard shortcut Meta-D

Pressing Meta-D deletes forwards one word.

deno repl keyboard shortcut Meta-F or Alt-Right

Pressing Meta-F or Alt-Right moves the cursor to the next word.

deno repl keyboard shortcut Meta-L

Pressing Meta-L changes the next word to lower-case.

deno repl keyboard shortcut Meta-T

Pressing Meta-T transposes words.

deno repl keyboard shortcut Meta-U

Pressing Meta-U changes the next word to upper-case.

deno repl keyboard shortcut Ctrl-S

Pressing Ctrl-S inserts a new line.

deno repl keyboard shortcut Ctrl-Z

Pressing Ctrl-Z suspends the REPL (Unix only).

deno repl keyboard shortcut Ctrl-_

Pressing Ctrl-_ performs an undo operation.

deno repl special variable _

The underscore (_) identifier yields the last evaluated expression in the REPL.

deno repl special variable _error

The _error identifier yields the last thrown error in the REPL.

deno repl clear() function

The clear() function clears the entire terminal screen in the REPL.

deno repl close() function

The close() function closes the current REPL session. It is also available as a way to exit the REPL.

deno repl --eval flag

The --eval flag allows you to run code in the runtime before being dropped into the REPL. This is useful for importing code you commonly use in the REPL or modifying the runtime.

deno repl --eval-file flag

The --eval-file flag allows you to run code from specified files before being dropped into the REPL. Files can be specified as paths or URLs. URL files are cached and can be reloaded via the --reload flag. If --eval is also specified, then --eval-file files are run before the --eval code.

deno repl --eval-file relative import resolution

When --eval-file specifies a code file that contains relative imports, the runtime resolves the imports relative to the current working directory, not relative to the code file's location. This can cause "Module not found" errors when using --eval-file with module files that have relative imports.

deno repl keyboard shortcut Ctrl-A or Home

Pressing Ctrl-A or Home moves the cursor to the beginning of the line.

deno repl keyboard shortcut Ctrl-B or Left

Pressing Ctrl-B or Left moves the cursor one character left.

deno repl keyboard shortcut Ctrl-C

Pressing Ctrl-C interrupts and cancels the current edit.

deno repl keyboard shortcut Ctrl-D

If the line is empty, Ctrl-D signals end of line. If the line is not empty, Ctrl-D deletes the character under the cursor.

deno repl keyboard shortcut Ctrl-E or End

Pressing Ctrl-E or End moves the cursor to the end of the line.

deno repl keyboard shortcut Ctrl-F or Right

Pressing Ctrl-F or Right moves the cursor one character right.

deno repl keyboard shortcut Ctrl-H or Backspace

Pressing Ctrl-H or Backspace deletes the character before the cursor.

deno repl keyboard shortcut Ctrl-I or Tab

Pressing Ctrl-I or Tab shows the next completion.

deno repl keyboard shortcut Ctrl-J, Ctrl-M, or Enter

Pressing Ctrl-J, Ctrl-M, or Enter finishes the line entry.

deno repl keyboard shortcut Ctrl-K

Pressing Ctrl-K deletes from the cursor to the end of the line.

deno repl keyboard shortcut Ctrl-L

Pressing Ctrl-L clears the screen.

deno repl keyboard shortcut Ctrl-N or Down

Pressing Ctrl-N or Down shows the next match from history.

deno repl keyboard shortcut Ctrl-P or Up

Pressing Ctrl-P or Up shows the previous match from history.

deno repl keyboard shortcut Ctrl-R

Pressing Ctrl-R performs a reverse search of history. Ctrl-S performs a forward search, and Ctrl-G cancels the search.

deno repl keyboard shortcut Ctrl-T

Pressing Ctrl-T transposes the previous character with the current character.

deno repl keyboard shortcut Ctrl-U

Pressing Ctrl-U deletes from the start of the line to the cursor.

deno repl keyboard shortcut Ctrl-V or Ctrl-Q

Pressing Ctrl-V or Ctrl-Q inserts the subsequent character verbatim instead of performing any action associated with it. For example, to insert a newline while editing a multi-line history entry, press Ctrl-V then Ctrl-J.

deno repl keyboard shortcut Ctrl-W

Pressing Ctrl-W deletes the word leading up to the cursor using white space as a word boundary.

deno repl keyboard shortcut Ctrl-X Ctrl-U

Pressing Ctrl-X Ctrl-U performs an undo operation.

deno repl keyboard shortcut Ctrl-Y

Pressing Ctrl-Y pastes from the yank buffer. Meta-Y pastes the next yank instead.

Give your agent this brain