1
0
Fork 0
forked from murx/murx

Made Ctrl-c configurable to any prefix.

This commit is contained in:
Johannes Findeisen 2026-11-15 06:28:29 +01:00
commit 1c4e34e0e3
2 changed files with 73 additions and 30 deletions

View file

@ -5,16 +5,29 @@ dependencies.
```sh
make -B CC=clang
./moerx # session "0"
./moerx work # separate named session
./moerx --help # all shortcuts
./moerx # session "0"
./moerx work # separate named session
./moerx -p C-x work # use Ctrl-X as this client's prefix
./moerx --help # all shortcuts
```
Detach with `Ctrl-A d`. Run `moerx` again to reattach.
Every shortcut is a chain that starts with the `Ctrl-A` prefix: press `Ctrl-A`,
release it, then press the rest of the chain. `Ctrl-B` is not a prefix; it is
sent straight to the pane.
Every shortcut is a chain that starts with the prefix (by default `Ctrl-A`):
press it, release it, then press the rest of the chain.
Use `-p C-x` or `--prefix C-x` to choose Ctrl-X instead. Control letters
`C-a` through `C-z` are supported, case-insensitively. The choice applies to
this attached client; use the option again when reattaching, or set a shell
alias such as `alias moerx='moerx -p C-x'`. Clients attached to the same session
can choose different prefixes.
With `-p C-x`, detach with `Ctrl-X d`, send a literal Ctrl-X with `Ctrl-X a`,
and switch to the last window with `Ctrl-X Ctrl-X`. Doubling the prefix takes
priority over any other control-key binding; `Ctrl-X x` still locks the client.
Ctrl-A is sent straight to the pane. All tables below show the default prefix;
replace it with your chosen key. When upgrading from a version without this
option, restart the session server once so it understands the prefix setting.
## What it does