Skip to content

Some Alt keyboard shortcuts trigger escape key. #2

@amano-kenji

Description

@amano-kenji
  1. Alacritty // TERM=alacritty. Alt+h and Alt+l are recognized properly by brick. Alt+PageDown, Alt+PageUp, Alt+Ins, and Alt+Del trigger escape key in brick. Pressing Alt+[ twice also triggers escape key.
  2. st // TERM=st-256color. Alt+h and Alt+l are recognized properly by brick. Alt+PageDown, Alt+PageUp, Alt+Ins, and Alt+Del have the same keycodes as PageDown, PageUp, Ins, and Del. Pressing Alt+[ twice triggers escape key. Ins triggers escape key somehow.
  3. foot // TERM=foot. The same result as alacritty.

Alt+PageUp, Alt+PageDown, Alt+Home, and Alt+End all work fine in weechat to scroll the current buffer in alacrity and foot. In st, Alt+PageUp, Alt+PageDown, Alt+Home, and Alt+End are the same as PageUp, PageDown, Home, and End.

https://weechat.org/files/doc/stable/weechat_user.en.html#key_bindings_buffers challenges vty to step up its terminal game.

To generate scrollable contents in weechat, type /help, /help server, or any help topic.

I also discovered a peculiar behavior around Backspace and Ctrl+h.

  • If I press Ctrl+V and Ctrl+h, I get ^H in alacritty, st, and foot.
  • If I press Ctrl+V and Backspace, I get ^? in alacritty, st, and foot.
  • If I press Ctrl+V and Ctrl+Backspace, I get ^H in alacritty, st, and foot.

However, EvKey KBS [MCtrl] or EvKey (KChar 'h') [MCtrl] is not triggered when I press Ctrl+h or Backspace or Ctrl+Backspace. EvKey KBS [] is triggered when I press Ctrl+h, Backspace, Ctrl+Backspace, Shift+Backspace, or Backspace with other modifers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions