shithub: riscv

Download patch

ref: 15c0d4b7c42f973296f372330fefe1c7f08895b4
parent: 6d3ff523db105172e47eefed7b768decd2978945
author: cinap_lenrek <[email protected]>
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;