ref: 704bd2b513dca6ba35deb5adf97529e4ebb3261f
parent: e993ea3e303d91ab8abaf92bd72e4fc177f84eeb
author: ftrvxmtrx <devnull@localhost>
date: Mon May 12 10:19:22 EDT 2014
samterm: fix esc, change ctrl+b behaviour to a more useful one (thanks cinap)
--- a/sys/src/cmd/samterm/main.c
+++ b/sys/src/cmd/samterm/main.c
@@ -484,7 +484,6 @@
case Kpgup:
case Kleft:
case Kright:
- case Kesc:
case Ksoh:
case Kenq:
case Kstx:
@@ -653,10 +652,13 @@
}
}
}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;