diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-18 14:09:51 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-18 14:09:59 -0600 |
| commit | 03d91b9a86c8af39ff45033f7ad14d458fe242e1 (patch) | |
| tree | 4d73d0b6cc1c41409da6c26ec83ef67436b22a9b /tests/tools/git@git.abendless.com:/srv/git | |
| parent | f38cee88af8a5ffcc259eb7a918b4f94f01b9fa1 (diff) | |
| download | zash-03d91b9a86c8af39ff45033f7ad14d458fe242e1.tar.gz | |
editor: `bind`, and prompts that take bash's \[ \] markers
`bind -l` lists the actions the editor can run and `bind
'^[[H'=beginning-of-line` gives one to a key sequence, in the notation
the BSD shells use. Only the names edit_key() already knows are
accepted, so a binding cannot do anything a key could not; `-m` (macro)
is refused rather than ignored. The defaults stay bash's: this is for
people whose .kshrc moves the arrow keys, not a move towards ksh.
`\[` and `\]` in PS1 say "this part does not move the cursor". The
width rule already skips control sequences, so dropping the markers is
the whole implementation, and a coloured prompt now shows its text
instead of the markers.
Diffstat (limited to 'tests/tools/git@git.abendless.com:/srv/git')
0 files changed, 0 insertions, 0 deletions
