Yut? (prompt) (y)

Yut? (prompt)

Syntax:

[line_range]y"prompt_text"command_chars"arguments

Description:

This command does not know what it is. It will print prompt_text on the command line then wait for you to type the letter of a command. If the character you type matches the nth character of command_chars then control will transfer to the nth line. Each line is separated with a linefeed (\0A).

For example,

y"k for kopy or m for move"km"\0a\ff#k.b2\0a\ff#m.\0a

would prompt:

k for kopy or m for move

on the command line and pause for you to type a character. If you typed an 'm' then the command:

#m.

would be executed, which happens to be a tagged move to the current line.

If the typed character is not found, then the last command will be executed. The n command is an invalid command and can be used to generate errors on invalid keys. In the following example, a space or any invalid key will generate an error:

y"k for kopy or m for move"km  "\0a\ff#k.b3\0a\ff#m.b2\0a\ffn\0a

Current line:

Set according to the command executed.

Condition register:

Set according to the command executed.