summaryrefslogtreecommitdiff
path: root/sys/src/cmd
diff options
context:
space:
mode:
authorftrvxmtrx <devnull@localhost>2014-05-12 14:19:22 +0200
committerftrvxmtrx <devnull@localhost>2014-05-12 14:19:22 +0200
commit704bd2b513dca6ba35deb5adf97529e4ebb3261f (patch)
tree06434337759f76826a8e9b199dfa84ed6fa801af /sys/src/cmd
parente993ea3e303d91ab8abaf92bd72e4fc177f84eeb (diff)
samterm: fix esc, change ctrl+b behaviour to a more useful one (thanks cinap)
Diffstat (limited to 'sys/src/cmd')
-rw-r--r--sys/src/cmd/samterm/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/src/cmd/samterm/main.c b/sys/src/cmd/samterm/main.c
index 715d69c46..3824ffc2d 100644
--- a/sys/src/cmd/samterm/main.c
+++ b/sys/src/cmd/samterm/main.c
@@ -484,7 +484,6 @@ nontypingkey(int c)
case Kpgup:
case Kleft:
case Kright:
- case Kesc:
case Ksoh:
case Kenq:
case Kstx:
@@ -653,10 +652,13 @@ type(Flayer *l, int res) /* what a bloody mess this is */
}
}
}else if(c == Kstx){
+ t = &cmd;
+ l = &t->l[0];
+ current(l);
flushtyping(0);
- a0 = t->rasp.nrunes;
- flsetselect(l, a0, a0);
- center(l, a0);
+ a = t->rasp.nrunes;
+ flsetselect(l, a, a);
+ center(l, a);
}else{
if(c==Kesc && typeesc>=0){
l->p0 = typeesc;