zsh-users
 help / color / mirror / code / Atom feed
* Not really a zsh thing, just a curiosity
@ 2015-11-07 19:38 Bart Schaefer
  2015-11-07 20:06 ` ZyX
  2015-11-07 20:08 ` shawn wilson
  0 siblings, 2 replies; 4+ messages in thread
From: Bart Schaefer @ 2015-11-07 19:38 UTC (permalink / raw)
  To: zsh-users

I've somehow gotten one of my gnome-terminal windows into a state where
in one tab the mouse wheel scrolls back through the window buffer and in
the other tab the mouse wheel scrolls through the zsh history at the
command line.  I have no idea how this happened, and I've never seen the
latter before.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Not really a zsh thing, just a curiosity
  2015-11-07 19:38 Not really a zsh thing, just a curiosity Bart Schaefer
@ 2015-11-07 20:06 ` ZyX
  2015-11-07 20:08 ` shawn wilson
  1 sibling, 0 replies; 4+ messages in thread
From: ZyX @ 2015-11-07 20:06 UTC (permalink / raw)
  To: Bart Schaefer, zsh-users

07.11.2015, 22:40, "Bart Schaefer" <schaefer@brasslantern.com>:
> I've somehow gotten one of my gnome-terminal windows into a state where
> in one tab the mouse wheel scrolls back through the window buffer and in
> the other tab the mouse wheel scrolls through the zsh history at the
> command line. I have no idea how this happened, and I've never seen the
> latter before.

There are two terminal modes regarding mouse: one when mouse is completely handled by a terminal emulator itself and one when terminal emulator only translates mouse events (wheel, presses) into escape sequences. Of course, modes are switched by passing terminal emulator some escape sequences. According to http://invisible-island.net/xterm/ctlseqs/ctlseqs.html this is not all-or-nothing thing: you may choose which of the mouse events are handled by the terminal and which by the application. Search the referenced page for `(?i)mouse`.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Not really a zsh thing, just a curiosity
  2015-11-07 19:38 Not really a zsh thing, just a curiosity Bart Schaefer
  2015-11-07 20:06 ` ZyX
@ 2015-11-07 20:08 ` shawn wilson
  1 sibling, 0 replies; 4+ messages in thread
From: shawn wilson @ 2015-11-07 20:08 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 564 bytes --]

On Nov 7, 2015 2:39 PM, "Bart Schaefer" <schaefer@brasslantern.com> wrote:
>
> I've somehow gotten one of my gnome-terminal windows into a state where
> in one tab the mouse wheel scrolls back through the window buffer and in
> the other tab the mouse wheel scrolls through the zsh history at the
> command line.  I have no idea how this happened, and I've never seen the
> latter before.

Guessing that scrolling the window buffer is default behavior and you put
one terminal into normal vi mode (though I guess it's possible to do this
in emacs mode - IDK how).

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Not really a zsh thing, just a curiosity
       [not found] <151107113848.ZM24275__4548.15182970396$1446925203$gmane$org@torch.brasslantern.com>
@ 2015-11-07 21:16 ` Stephane Chazelas
  0 siblings, 0 replies; 4+ messages in thread
From: Stephane Chazelas @ 2015-11-07 21:16 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh-users

2015-11-07 11:38:48 -0800, Bart Schaefer:
> I've somehow gotten one of my gnome-terminal windows into a state where
> in one tab the mouse wheel scrolls back through the window buffer and in
> the other tab the mouse wheel scrolls through the zsh history at the
> command line.  I have no idea how this happened, and I've never seen the
> latter before.

You've entered the alternate screen ($terminfo[smcup]). In
there, there's not scroll buffer, so gnome-terminal choses the
map the scroll wheel events to the same sequences as the arrow
keys.

-- 
Stephane


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-07 21:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-07 19:38 Not really a zsh thing, just a curiosity Bart Schaefer
2015-11-07 20:06 ` ZyX
2015-11-07 20:08 ` shawn wilson
     [not found] <151107113848.ZM24275__4548.15182970396$1446925203$gmane$org@torch.brasslantern.com>
2015-11-07 21:16 ` Stephane Chazelas

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).