summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/wind.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-08-04 06:45:58 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-08-04 06:45:58 +0200
commit24349c52b4fc930d183cf4ec4d7f4b6275e7cb0d (patch)
tree689543a2aa54267209608187012cc5da379e1c60 /sys/src/cmd/rio/wind.c
parenta269ced358a6c79708a41c42ae1978599fb5634a (diff)
rio: add ^B control sequence to move cursor to output point
Diffstat (limited to 'sys/src/cmd/rio/wind.c')
-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 d8c47d4cb..fc9a1176d 100644
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -691,6 +691,10 @@ wkeyctl(Window *w, Rune r)
wsetselect(w, q0, q0);
wshow(w, w->q0);
return;
+ case Kstx: /* ^B: output point */
+ wsetselect(w, w->qh, w->qh);
+ wshow(w, w->q0);
+ return;
}
if(w->rawing && (w->q0==w->nr || w->mouseopen)){
waddraw(w, &r, 1);