From owner-freebsd-ports Mon Sep 16 16:19:27 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D96037B400 for ; Mon, 16 Sep 2002 16:19:26 -0700 (PDT) Received: from alpha.cnc.una.py (alpha.cnc.una.py [200.10.228.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9050D43E6E for ; Mon, 16 Sep 2002 16:19:22 -0700 (PDT) (envelope-from jsegovia@cnc.una.py) Received: from fsbkp.cnc.una.py (fsbkp.cnc.una.py [200.10.228.15]) by alpha.cnc.una.py (8.11.6/8.11.6) with SMTP id g8H0KpH07412 for ; Mon, 16 Sep 2002 20:20:52 -0400 Date: Mon, 16 Sep 2002 20:20:51 -0400 From: Juan Segovia To: ports@freebsd.org Subject: TVision: Enable mouse on xterm/FreeBSD Message-Id: <20020916202051.6faf190a.jsegovia@cnc.una.py> Reply-To: jsegovia@cnc.una.py Organization: CNC, UNA X-Mailer: Sylpheed version 0.8.2claws (GTK+ 1.2.10; ) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, Please find below a small and simple patch to enable mouse on xterms. The source for TVision is 0.8_1 from ports. I have tested the modified library and it works correctly on FreeBSD4.6-stable. The parameters to mousemask() are the same that are used for Linux "gpm" in other parts of the source. If I must send this patch to someone else instead, please let me know. Thank you. ------------------------------------------------- *** system.cc Mon Sep 16 20:11:44 2002 --- system.cc.orig Mon Sep 16 20:09:41 2002 *************** *** 1504,1509 **** --- 1504,1515 ---- TScreen::drawCursor(0); /* hide the cursor */ TScreen::drawMouse(1); /* draw the mouse pointer */ + #ifdef NCURSES_MOUSE_VERSION + mousemask (ALL_MOUSE_EVENTS | + REPORT_MOUSE_POSITION, + NULL); + #endif + /* if possible we should use curses semigraphical characters */ #ifndef DISABLE_ACS -- Centro Nacional de Computacion, UNA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message