From owner-freebsd-questions Fri Jul 12 08:11:46 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA17718 for questions-outgoing; Fri, 12 Jul 1996 08:11:46 -0700 (PDT) Received: from freebsd.gaffaneys.com (dialup2.gaffaneys.com [134.129.252.21]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA17709 for ; Fri, 12 Jul 1996 08:11:42 -0700 (PDT) Received: (from zach@localhost) by freebsd.gaffaneys.com (8.7.5/8.7.5) id KAA01676; Fri, 12 Jul 1996 10:12:08 -0500 (CDT) To: Jim Dennis Cc: zounds@INNOSOFT.COM, root@synwork.com, questions@freebsd.org Subject: Re: Mouse Outside of X References: <199607121058.DAA02125@starshine> From: Zach Heilig Date: 12 Jul 1996 10:12:06 -0500 In-Reply-To: Jim Dennis's message of Fri, 12 Jul 1996 03:58:11 -0700 (PDT) Message-ID: <87buhlzet5.fsf@freebsd.gaffaneys.com> Lines: 48 X-Mailer: Gnus v5.2.32/Emacs 19.31 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Jim Dennis writes: > Not in the console driver (though there is probably some > kernel level support). This function is provided by the old > 'selection' or the more current gpm (generic protocol for mice??) > by Allesandro Rubini (based on the selection code by Andrew > Haylett). > Midnight commander includes support for gpm -- so that one > gets mouse support for the app -- just like the old Norton > Commander for DOS. Any time a non-mouse aware (gpm) app > is running gpm defaults back to it's role of allowing > the operator to 'select' (mark/copy) and 'paste' any text that's > displayed on the console. This sounds like the environment in an xterm. It will pass mouse events down to the application if it asks. I know that jove supports this behavior, and I think I remember seeing something about emacs supporting it as well. I wonder if this 'gpm' sends xterm-like mouse events? > > I noticed in a different reply that this is supposed to go into 2.2. > > Will the mouse give xterm-like events, so my emacs menu's will work > > :-) or would that be impossible? (I am currently unable to run X, it > > has something to do with disk space, and non-VGA display hardware).. > Linux emacs doesn't exihibit support for gpm -- I suspect that > this would require source patches to the binaries (elisp code would > probably not be enough). Maybe you need to set an environment variable (TERM=xterm perhaps) to signal that it can expect xterm-like behavior. The only reason I brought that up is I noticed the MS-DOS version of emacs has mouse and font-lock support (wonder how "they" did it?). Fixing up syscons to fully emulate vt102 escape sequences, along with xterm-like mouse events (be they from gpm or something else), would probably be the best way to go, as you would have more support from applications that use a mouse while running in an xterm. Obviously somebody has to be interested in doing this :-) I'm mildly interested, but I'm pretty busy right now till at least the middle of August, maybe even September. -- Zach Heilig (zach@blizzard.gaffaneys.com) Support bacteria -- it's the only culture some people have! ALL unsolicited commercial email is unwelcome. My policy is avoid dealing with companies that send out such mailings.