Skip to content

Custom Sequences

Attyx lets you bind any key combo to send a raw escape sequence to the terminal via the [sequences] table.

[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.

Values use standard TOML string escapes:

EscapeCharacter
\u001bESC (0x1b)
\nNewline
\rCarriage return
\tTab
\\Literal backslash

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"