git: 9front

Download patch

ref: cbc376d6700a46eb5dc80a3d4ed18488467e1660
parent: 7f6dc40180510c2ddcd47e83bd2e8e5f60c39032
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sat Jul 28 10:47:35 EDT 2012

rio: add scroll lock key to toggle scroll mode

--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -665,6 +665,10 @@
 		case Kend:
 			wshow(w, w->nr);
 			return;
+		case Kscroll:
+			w->scrolling ^= 1;
+			wshow(w, w->nr);
+			return;
 		case Ksoh:	/* ^A: beginning of line */
 			if(w->q0==0 || w->q0==w->qh || w->r[w->q0-1]=='\n')
 				return;
--