[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATCH: focus follows mouse in C

From: Pavel Janík
Subject: Re: PATCH: focus follows mouse in C
Date: Sat, 09 Feb 2002 17:26:55 +0100
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i386-suse-linux-gnu)

   From: "Eli Zaretskii" <address@hidden>
   Date: Sat, 09 Feb 2002 16:52:29 +0200

   > And what about the tty version with xt-mouse or an equivalent?

It is not possible at all in xterm, because xterm can not sent mouse
movement events, only button presses/releases (see ctlseqs.PS from
X documentation, page 5). The same is stated in the xterm manual page:

       Xterm allows character-based applications to receive mouse
       events (currently button-press  and  release  events,  and
       button-motion  events) as keyboard control sequences.  See
       Xterm Control Sequences for details.

On the other hand, it is doable on a virtual console (at least on my system
which is based on Linux kernel) because t-mouse.el (resp. mev program from
gpm suite) can report mouse movements (current t-mouse.el which is part of
gpm, ignores mouse movements, because the cmdline argument "-e-move" is
used for mev).
Pavel Janík

Use data arrays to avoid repetitive control sequences.
                  --  The Elements of Programming Style (Kernighan & Plaugher)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]