patch to fix meta key in mg

Rob Austein sra at hactrn.net
Tue Sep 23 14:36:45 PDT 2003


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()


More information about the freebsd-ports mailing list