summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-07-28 14:47:35 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-07-28 14:47:35 +0200
commit15c0d4b7c42f973296f372330fefe1c7f08895b4 (patch)
tree5009ec04af89828802e001eb988409f9d3bec7e3 /sys/src/cmd/rio
parent6d3ff523db105172e47eefed7b768decd2978945 (diff)
rio: add scroll lock key to toggle scroll mode
Diffstat (limited to 'sys/src/cmd/rio')
-rw-r--r--sys/src/cmd/rio/wind.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/src/cmd/rio/wind.c b/sys/src/cmd/rio/wind.c
index 527c23de6..839d80cd7 100644
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -665,6 +665,10 @@ wkeyctl(Window *w, Rune r)
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;