[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: xterm alternate screen - alternateScroll - pageup/pagedown
From:       Thomas Dickey <dickey () his ! com>
Date:       2023-05-07 13:45:38
Message-ID: ZFergmYuzXwPqqgi () prl-debianold-64 ! jexium-island ! net
[Download RAW message or body]


On Thu, May 04, 2023 at 09:28:36PM -0400, Dennis Nezic wrote:
> In alternate screens, with alternateScroll mode, I wonder if it'd be more
> useful to send Prior / Next (PageUp / PageDown) signals instead of Up / Down
> when scrolling with a mouse/touchpad?  Many apps (like irssi) use Up/Down to
> navigate through their command lines, whereas PageUp/PageDown seems a bit
> more universally understood.

That (choice of escape sequence) could be made configurable,
but just changing it to pageup/pagedown would aggravate a lot of people.

The same would also apply if one used a parameter for the up/down escape
sequences, e.g.,

	\033[5B

rather than

	\033[B
	\033[B
	\033[B
	\033[B
	\033[B

because some applications would mishandle it.

> By the way, how can I get these alternateScroll events to include Shift- or
> Ctrl- modifiers?  Currently they're being ignored.

The key-bindings are  handled via scroll-to, scroll-forw and scroll-back
actions, which are (user) configurable using the translations resources.

The amount by which it's scrolled also is configured (see the mention of
"units" in the scroll-back action).

Modifiers would be passed in the XEvent, which is ignored in these actions.
Again, providing something like that as a configurable feature is what
people expect -- most won't want it.

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic