ronisbr / TerminalPager.jl

Pure Julia implementation of the command less
MIT License
116 stars 8 forks source link

fastdown only shifts by 1 line #35

Closed bjarthur closed 7 months ago

bjarthur commented 7 months ago

on both mac and linux. so it behaves just the same as regular down. similarly for fastup. fast{left,right} work as documented. this is on julia v1.10 and TerminalPager v0.5.1.

ronisbr commented 7 months ago

Hi @bjarthur

I cannot reproduce this bug. When I hit SHIFT + DOWN or SHIFT + UP, it scrolls 5 lines as expected (macOS). Please, check your keyboard layout and terminal to verify if the latter is really receiving the correct keystroke.

ronisbr commented 7 months ago

https://asciinema.org/a/moUGJ5m8VVYkD0qrAGuYBJkvR

bjarthur commented 7 months ago

indeed, it's a problem with my terminal settings. iterm2 worked out of the box, but Terminal.app from apple was missing definitions in it's profile, as described here: https://apple.stackexchange.com/questions/412107/terminal-app-eats-shift-key-when-used-with-up-and-down-arrows-but-not-left-or-r. like this specifically:

Screenshot 2024-01-11 at 1 56 04 PM