From owner-freebsd-ports@FreeBSD.ORG Tue Sep 23 14:36:45 2003 Return-Path: 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 6DF1116A4B3; Tue, 23 Sep 2003 14:36:45 -0700 (PDT) Received: from thrintun.hactrn.net (h00d0cf007f0f.ne.client2.attbi.com [24.61.21.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id AABED43FAF; Tue, 23 Sep 2003 14:36:44 -0700 (PDT) (envelope-from sra@hactrn.net) Received: from thrintun.hactrn.net (localhost [::1]) by thrintun.hactrn.net (Postfix) with ESMTP id F069D18EE; Tue, 23 Sep 2003 17:36:43 -0400 (EDT) Date: Tue, 23 Sep 2003 17:36:43 -0400 From: Rob Austein To: dd@freebsd.org User-Agent: Wanderlust/2.10.0 (Venus) Emacs/20.7 Mule/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Message-Id: <20030923213643.F069D18EE@thrintun.hactrn.net> cc: freebsd-ports@freebsd.org Subject: patch to fix meta key in mg X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2003 21:36:45 -0000 Retrying, since I didn't hear anything when I sent this last month. Hi. Not sure you're the right place to send this, but you're the closest thing I could find to a maintainer for mg. I finally got tired enough of having mg's meta key not work quite right that I screwed around with it under gdb for a while and found the problem. The fix is trivial, so I hope there's some way to incorporate it. Thanks! --Rob --- mg-20010514/ttyio.c~ Thu May 3 16:40:22 2001 +++ mg-20010514/ttyio.c Fri Aug 29 19:30:32 2003 @@ -152,17 +152,17 @@ */ int ttgetc() { char c; while (read(0, &c, 1) != 1) ; - return ((int) c); + return ((int) c) & 0xFF; } /* * Set the tty size. * XXX - belongs in tty.c since it uses terminfo vars. */ void setttysize()