In most cases, the clipboard is shared between live, edit and the 2 preset modes.
Key
Action
<left> / ctrl-b
move cursor left
<right> / ctrl-f
move cursor right
<home> / ctrl-a
move to beginning of line
<end> / ctrl-e
move to end of line
<backspace> / ctrl-h
backwards delete one character
<delete> / ctrl-d
forwards delete one character
shift-<backspace> / ctrl-u
delete from cursor to beginning
shift-<delete> / ctrl-e
delete from cursor to end
alt-<backspace> / ctrl-w
delete from cursor to beginning of word
ctrl-x / alt-x
cut to clipboard
ctrl-c / alt-c
copy to clipboard
ctrl-v / alt-v
paste to clipboard
Live mode
Key
Action
<down> / C-n
history next
<up> / C-p
history previous
<enter>
execute command
[ / ]
switch to edit mode
Edit mode
Key
Action
<down> / C-n
line down
<up> / C-p
line up
[
previous script
]
next script
<enter>
enter command
shift-<enter>
insert command
Pattern mode
The pattern mode clipboard is independent of text and code clipboard.
Key
Action
<down>
move down
alt-<down>
move a page down
<up>
move up
alt-<up>
move a page up
<left>
move left
alt-<left>
move to the very left
<right>
move right
alt-<right>
move to the very right
[
decrement by 1
]
increment by 1
<backspace>
delete a digit
shift-<backspace>
delete an entry, shift numbers up
<enter>
move down (increase length only if on the entry immediately after the current length)
shift-<enter>
duplicate entry and shift downwards (increase length as <enter>)
alt-x
cut value (n.b. ctrl-x not supported)
alt-c
copy value (n.b. ctrl-c not supported)
alt-v
paste value (n.b. ctrl-v not supported)
shift-alt-v
insert value
shift-l
set length to current position
alt-l
go to current length entry
shift-s
set start to current position
alt-s
go to start entry
shift-e
set end to current position
alt-e
go to end entry
-
negate value
<space>
toggle non-zero to zero, and zero to 1
0 to 9
numeric entry
Preset read mode
Key
Action
<down> / C-n
line down
<up> / C-p
line up
<left> / [
preset down
<right> / ]
preset up
<enter>
load preset
Preset write mode
Key
Action
<down> / C-n
line down
<up> / C-p
line up
[
preset down
]
preset up
<enter>
enter text
alt-<enter>
save preset
Help mode
Key
Action
<down> / C-n
line down
<up> / C-p
line up
<left> / [
previous page
<right> / ]
next page
OPs and MODs
Variables
OP
OP (set)
(aliases)
Description
A
A x
get / set the variable A, default value 1
B
B x
get / set the variable B, default value 2
C
C x
get / set the variable C, default value 3
D
D x
get / set the variable D, default value 4
DRUNK
DRUNK x
changes by -1, 0, or 1 upon each read saving its state, setting will give it a new value for the next read
DRUNK.MIN
DRUNK.MIN x
set the lower bound for DRUNK
FLIP
FLIP x
returns inverted state (0 or 1) on each read (also settable)
Maths
OP
OP (set)
(aliases)
Description
ADD x y
+
add x and y together
Extended OP documentation
DRUNK
DRUNK / DRUNK x
Changes by -1, 0, or 1 upon each read, saving its state. Setting DRUNK will give it a new value for the next read, and drunkedness will continue on from there with subsequent reads.