Custom Sequences
Attyx lets you bind any key combo to send a raw escape sequence to the terminal via the [sequences] table.
Configuration
Section titled “Configuration”[sequences]"ctrl+shift+k" = "\u001b[K""alt+enter" = "\u001b\r"Each key is a key combo and each value is the escape sequence string to send.
Escape syntax
Section titled “Escape syntax”Values use standard TOML string escapes:
| Escape | Character |
|---|---|
\u001b | ESC (0x1b) |
\n | Newline |
\r | Carriage return |
\t | Tab |
\\ | Literal backslash |
Examples
Section titled “Examples”Clear the line from cursor to end:
[sequences]"ctrl+shift+k" = "\u001b[K"Send Alt+Enter as ESC followed by carriage return:
[sequences]"alt+enter" = "\u001b\r"Send a CSI sequence to move the cursor up 5 lines:
[sequences]"ctrl+shift+up" = "\u001b[5A"