git: 9front

Download patch

ref: 5f667d26529c7405842b6cdb7b00985dd72a662b
parent: af0307960d035da73e651e0b5357c29ea081c1fa
author: aiju <aiju@phicode.de>
date: Sat Aug 25 18:38:32 EDT 2012

games/gb: del instead of f12/o

--- a/sys/src/games/gb/gb.c
+++ b/sys/src/games/gb/gb.c
@@ -178,7 +178,7 @@
 		if(read(fd, buf, 256) <= 0)
 			sysfatal("read /dev/kbd: %r");
 		if(buf[0] == 'c'){
-			if(utfrune(buf, KF|12) || utfrune(buf, 'o'))
+			if(utfrune(buf, Kdel))
 				threadexitsall(nil);
 			if(utfrune(buf, KF|5))
 				savereq = 1;
@@ -199,7 +199,7 @@
 					qlock(&pauselock);
 				paused = !paused;
 				break;
-			case KF|12:
+			case Kdel:
 				threadexitsall(nil);
 			case Kdown:
 				keys |= 1<<3;
--