(get-tty-buffer prompt-string [default-value])

Prompts for a buffer name using command completion and providing help. The function returns the name of the buffer as a string.

The optional default-value parameter provides the default input.

Example To insert a buffer name into the current buffer:

(insert-string (get-tty-buffer "Save buffer: "))

See also:

(get-tty-character)

Reads a single character from the terminal and returns it as an integer. The cursor is not moved to the message area, but is left in the text window; this is useful when writing things like query-replace and incremental search programs in MLisp.

See also:

(get-tty-command command-name [default-value])

Prompts for the name of a declared function (using command completion and providing help) and returns the name of the function as a string.

The optional default-value parameter provides the default input.

Example: The expand-mlisp-word function is simply:

(insert-string (get-tty-command ": expand-mlisp-word "))

See also:

(get-tty-directory prompt [default-value])

Prompts for a directory name using command completion and providing help. The function returns the name of the directory as a string.

The optional default-value parameter provides the default input.

(get-tty-file prompt [default-value])

Prompts for a file name using command completion and providing help. The function returns the name of the file as a string.

The optional default-value parameter provides the default input.

Example: Insert a file name into the buffer:

(insert-string (get-tty-file "Insert file name: "))

See also:

(get-tty-string prompt [default-value])

Reads a string from the terminal using its single string parameter as a prompt. Generally use inside MLisp programs to ask questions.

The optional default-value parameter provides the default input.

See also:

(get-tty-variable prompt [default-value])

Prompts for the name of a declared variable (using command completion and providing help) and returns the name of the variable as a string.

The optional default-value parameter provides the default input.

See also:

(getenv env-name)

Returns the value of the named environment symbol.

See also:

(global-binding-of key-sequence)

Returns the name of the function that the provided key sequence will invoke, using the global keymap.

See also:

(goto-character expression)

Moves dot to the specified character position.

Example:Go to character position 22:

(goto-character 22)

(goto-window-at-x-y X-coordinate Y-coordinate)

This MLisp function is for supporting a mouse-style pointing device. The function takes two arguments, the X and Y co-ordinates of the pointer on the screen.

goto-window-at-x-y performs two operations:

goto-window-at-x-y returns an integer result that tells you which part of a window the co-ordinates are in. The result is one of the following: