From owner-cvs-src-old@FreeBSD.ORG Sun Sep 27 18:20:45 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CB94106566C for ; Sun, 27 Sep 2009 18:20:45 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 2A0118FC14 for ; Sun, 27 Sep 2009 18:20:45 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n8RIKjj6036468 for ; Sun, 27 Sep 2009 18:20:45 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n8RIKju4036467 for cvs-src-old@freebsd.org; Sun, 27 Sep 2009 18:20:45 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <200909271820.n8RIKju4036467@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten Date: Sun, 27 Sep 2009 18:19:41 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/syscons scmouse.c scterm-teken.c syscons.c syscons.h src/sys/teken teken.h teken_subr.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Sep 2009 18:20:45 -0000 ed 2009-09-27 18:19:41 UTC FreeBSD src repository Modified files: sys/dev/syscons scmouse.c scterm-teken.c syscons.c syscons.h sys/teken teken.h teken_subr.h Log: SVN rev 197539 on 2009-09-27 18:19:41Z by ed Add support for VT200-style mouse input. Right now if applications want to use the mouse on the command line, they use sysmouse(4) and install a signal handler in the kernel to deliver signals when mouse events arrive. This conflicts with my plan to change to TERM=xterm, so implement proper VT200-style mouse input. Because mouse input is now streamed through the TTY, it means you can now SSH to another system on the console and use the mouse there as well. The disadvantage of the VT200 mouse protocol, is that it doesn't seem to generate events when moving the cursor. Only when pressing and releasing mouse buttons. There are different protocols as well, but this one seems to be most commonly supported. Reported by: Paul B. Mahol Tested with: vim(1) Revision Changes Path 1.44 +52 -0 src/sys/dev/syscons/scmouse.c 1.15 +4 -1 src/sys/dev/syscons/scterm-teken.c 1.475 +6 -7 src/sys/dev/syscons/syscons.c 1.95 +3 -1 src/sys/dev/syscons/syscons.h 1.7 +1 -0 src/sys/teken/teken.h 1.10 +6 -0 src/sys/teken/teken_subr.h