weechat icon indicating copy to clipboard operation
weechat copied to clipboard

Discard escape character after a delay

Open ncfavier opened this issue 7 months ago • 0 comments

Feature description

Terminals encode key chords like alt+w as an escape character (ESC, \x1B) followed by w. As a result, pressing the Escape key followed by w has the same effect as pressing alt+w, which leads to funny accidents when one unintentionally presses Escape then starts typing a message starting with w, and alt+w is mapped to "close the current buffer".

Would it make sense to discard an input consisting of a single escape character after a (configurable?) delay?

ncfavier avatar Jun 02 '25 20:06 ncfavier