Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 283867

Summary: sys-libs/gpm screen support
Product: Gentoo Linux Reporter: Victor Gaydov <victor.gaydov>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED UPSTREAM    
Severity: enhancement    
Priority: Low    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /usr/local/portage/sys-libs/gpm/files/gpm-1.20.6-screen.patch

Description Victor Gaydov 2009-09-06 18:46:38 UTC
hello!

in undone patches of gpm there is one that makes gpm working inside Screen session.
i'm using screen and gpm a lot so i adopted that patch for
sys-libs/gpm 1.20.1-r6 and 1.20.6 and also add one or two fixes.
i've test it with mc, vim, and others.

for now it'll work properly if you export TTY environment variable
in caller program and set it to `tty`.
(for example add export TTY=`tty` to .bashrc)
Comment 1 Victor Gaydov 2009-09-06 18:49:14 UTC
Created attachment 203306 [details]
/usr/local/portage/sys-libs/gpm/files/gpm-1.20.6-screen.patch

patch for gpm-1.20.6
Comment 2 Victor Gaydov 2009-09-06 19:04:24 UTC
ps. add :set ttymouse="" to .vimrc to help vim determine screen pty properly
Comment 3 SpanKY gentoo-dev 2010-12-24 20:35:02 UTC
please send this patch to the upstream authors.  i'm not really qualified to verify the correctness of this patch.

it's simple to post to them:
http://www.nico.schottelius.org/software/gpm/