screen-users
[Top][All Lists]
Advanced

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

Re: gpm, vim and screen


From: Stephane Chazelas
Subject: Re: gpm, vim and screen
Date: Wed, 31 Dec 2008 11:31:26 +0000
User-agent: Mutt/1.5.16 (2007-09-19)

On Wed, Dec 31, 2008 at 12:07:25AM +0000, Dave Wood wrote:
> For some reason gpm mouse does not work when I run vim in a screen. It
> works fine outside of screen. Is there some setting I need to use?
[...]

In order to talk to the GPM daemon, vim must know what virtual
console it is in. In screen, the tty is no longer /dev/tty<n>,
but /dev/pts/<x> or /dev/pty<xx>, xx varying with the window.

Also note that a screen can be attached to several real ttys.

When in screen, vim is not running in a Linux console, it has no
mean to know that it is within a screen within a Linux console
(and again, it could be within several Linux consoles).

The only clean way to do it would be for screen to talk to gpm
and provide vim (and any application) with some xterm-like mouse
tracking support. That would be a nice feature to add to screen.

-- 
Stéphane




reply via email to

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