vonshednob / pter

Manage your todo.txt in a commandline user interface (TUI)
https://vonshednob.cc/pter/
MIT License
102 stars 6 forks source link

Patch to fix caret key issues #52

Closed andrei-a-papou closed 5 months ago

andrei-a-papou commented 6 months ago

Problem: unrecognized escape sequences are seen as single caret keypresses by pter, which triggers whatever command is bound to ^ and/or outputs the caret character on screen. For example, this happens if I accidentally hit an Alt + something keybinding.

I propose pter should just consume those escape sequences without outputting anything. And also actual carets should still be properly recognized.

Here's a patch I've used for a couple of days, seems to work fine: 91-fix-caret-1.diff.gz 91-fix-caret-2.diff.gz

vonshednob commented 5 months ago

Got your patch in