Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2003 17:36:43 -0400
From:      Rob Austein <sra@hactrn.net>
To:        dd@freebsd.org
Cc:        freebsd-ports@freebsd.org
Subject:   patch to fix meta key in mg
Message-ID:  <20030923213643.F069D18EE@thrintun.hactrn.net>

next in thread | raw e-mail | index | archive | help
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()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030923213643.F069D18EE>