NYAGOS - The Nihongo Yet Another GOing Shell

English / Japanese

Command Line Editing

You can edit the command line with key bindings similar to UNIX shells.

Meta means either Alt+key or Esc followed by key.

Customizing key bindings

To change key bindings, add statements like the following to your .nyagos file:

-- Make Ctrl-D perform a simple delete instead of exiting the shell.
nyagos.key.C_D = "DELETE_CHAR"

Since the Esc key is normally used as a prefix key, it cannot be assigned to a command by default. However, if you enable the singleescape option, you can bind a command to a standalone Esc key.

(Note: On some terminals, this may occasionally cause the Up Arrow key to be interpreted as a standalone Esc followed by [A, resulting in incorrect behavior.)

nyagos.option.singleescape = true
nyagos.key.escape = "KILL_WHOLE_LINE"