aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/samterm
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-06-17 03:34:57 +0000
committerrsc <devnull@localhost>2004-06-17 03:34:57 +0000
commitac9d504d132b021960644bab5fca84928637b975 (patch)
tree201c21acbb534f7a30aaf2419a4ab12c46e07bd5 /src/cmd/samterm
parent99dfa1dad2c7f43e6ff9ac8fb5df2d4bf3fd714d (diff)
downloadplan9port-ac9d504d132b021960644bab5fca84928637b975.tar.gz
plan9port-ac9d504d132b021960644bab5fca84928637b975.tar.bz2
plan9port-ac9d504d132b021960644bab5fca84928637b975.zip
add key syms.
where did these go?
Diffstat (limited to 'src/cmd/samterm')
-rw-r--r--src/cmd/samterm/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/samterm/main.c b/src/cmd/samterm/main.c
index dcc57f94..647696f7 100644
--- a/src/cmd/samterm/main.c
+++ b/src/cmd/samterm/main.c
@@ -439,6 +439,8 @@ flushtyping(int clearesc)
#define ENDKEY Kend
#define PAGEUP Kpgup
#define PAGEDOWN Kpgdown
+#define LEFTARROW Kleft
+#define RIGHTARROW Kright
int
nontypingkey(c)
@@ -507,7 +509,6 @@ type(Flayer *l, int res) /* what a bloody mess this is */
if(c==SCROLLKEY || c==PAGEDOWN){
flushtyping(0);
center(l, l->origin+l->f.nchars+1);
- /* backspacing immediately after outcmd(): sorry */
}else if(c==BACKSCROLLKEY || c==PAGEUP){
flushtyping(0);
a0 = l->origin-l->f.nchars;
@@ -535,6 +536,7 @@ type(Flayer *l, int res) /* what a bloody mess this is */
flushtyping(0);
center(l, t->rasp.nrunes);
}else if(backspacing && !hostlock){
+ /* backspacing immediately after outcmd(): sorry */
if(l->f.p0>0 && a>0){
switch(c){
case '\b':