1
1
mirror of https://github.com/walles/moar.git synced 2024-11-22 21:50:43 +03:00
Commit Graph

4 Commits

Author SHA1 Message Date
Ilya Grigoriev
7b8d7eafe3 keys.go: Allow alternative Home/End key encoding
My setup is Tmux running in Alacritty on Debian Linux running on Chrome OS.
Before this change, Home and End keys did not work for me inside Tmux.
(Outside tmux, I don't think there was a problem).

I got the required sequences by running `cat` and pressing Home/End.

This looks similar to (or possibly the opposite of)
daafbcdac4.
The reference in that commit mentions these sequences for Home and End, these
kinds of sequences were already used for Delete, PgUp, and PgDown. 

For reference, the missing `\x1b[2~`  sequence would correspond to the Insert
key.
2023-09-29 23:30:38 -07:00
Johan Walles
daafbcdac4 Handle "SS3" arrow key events
Ref:
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-C1-_8-Bit_-Control-Characters

Fixes #138
2023-06-07 19:49:13 +02:00
Johan Walles
a5bd7037e3 Single character shift when moving right / left
By holding ALT while pressing the right / left arrow keys.

Relates to #130.
2023-03-19 11:25:52 +01:00
Johan Walles
44a064c024 Write tcell replacement
Fixes #37 and fixes #34.
2021-04-17 22:24:40 +02:00