List of Primitive Functions

The primitive functions shown below can be used with the primitive command to simulate keyboard actions in menus.

Function Action

beginelement
Move the cursor to the beginning of the current element.
beginline
Move the cursor to the beginning of the current line.
char x
Put the character x at the cursor position.

x can be either any single character (expressed as three decimal digits or two hexadecimal digits preceded by x) if the resulting value is greater than 0 and less than 256. You can also specify a string enclosed in single or double quotation marks to allow several characters to be inserted or replaced in one operation.

cursordown
Move the cursor down one line.
cursorleft
Move the cursor left one column.
cursorright
Move the cursor right one column.
cursorup
Move the cursor up one line.
deletechar
Delete the character at the cursor position.
deleteword
Delete the word at the cursor position.
endelement
Move the cursor to the end of the current element.
endline
Move the cursor to the end of the current line.
insertchar x
Insert character x at the cursor position.

x can be either any single character (expressed as three decimal digits or two hexadecimal digits preceded by x) if the resulting value is greater than 0 and less than 256. You can also specify a string enclosed in single or double quotation marks to allow several characters to be inserted or replaced in one operation.

jump
Move the cursor to the position of last change.
newline
Move the cursor to the start of the next line.
nexttab
Move the cursor to the next tab position.
null
Take no action.
previoustab
Move the cursor to the preceding tab position.
replacechar x
Replace the character at the cursor position with character x.

x can be either any single character (expressed as three decimal digits or two hexadecimal digits preceded by x) if the resulting value is greater than 0 and less than 256. You can also specify a string enclosed in single or double quotation marks to allow several characters to be inserted or replaced in one operation.

rubout
Move the cursor and all characters to the right to the left one column, deleting the character on the left.
selectdown
Select/deselect the next line.
selectdrag
Select/deselect text to the mouse position.
selectend
Select/deselect text to the end of the line.
selectfileend
Select/deselect text to the end of the file.
selectfilehome
Select/deselect text to the start of the file.
selecthome
Select/deselect text to the start of the line.
selectleft
Select/deselect text one character position to the left.
selectpagedown
Select/deselect text down one page.
selectpageleft
Select/deselect text left one page.
selectpageright 
Select/deselect text right one page.
selectpageup
Select/deselect text up one page.
selectright
Select/deselect text one character position to the right.
selectup
Select/deselect text up one line.
selectword
Select/deselect the word at the cursor position.
selectworddown
Select/deselect text one line down and move to a word boundary.
selectwordleft
Select/deselect one word to the left.
selectwordright
Select/deselect one word to the right.
selectwordup
Select/deselect text one line up and move to a word boundary.
setcursor
Move the cursor to the mouse pointer position.
setpointer
Move the mouse pointer to the cursor position.
togglecommand
Display the Issue edit command dialog.
toggleinsert
Toggle between insert and replace modes.
toggleprefix
Toggle the cursor between the prefix area and the data area.
topline
Set the current line to the top line in the display.
truncate
Delete text to the end of the line.
wordleft
Move the cursor to the next word on the left.
wordright
Move the cursor to the next word on the right.


primitive command