9fans archive / 1999 / 03 / 26 / prev next
From: rsc@res... rsc@res...
Subject: [9fans] up arrow in acme, 8½
Date: Sat, 27 Mar 1999 01:39:30 -0500
for those who want the up arrow to scroll up in acme
and 8½, here are the appropriate diffs.
the line numbers might not match the cd exactly.
both code fragments come after a very similar one
with the string "VIEW" in the comment. in both cases
its the only occurrence of VIEW in the entire source.
russ
nomad!acme% yesterday -d text.l
diff /n/dump/1999/0326/sys/src/cmd/acme/text.l text.l
494a495,499
> if(r == 0xCE){ /* up arrow on pcs */
> q0 = t->backnl(t->org, (t->r.max.y-t->r.min.y)/(2*t->font->height));
> t->setorigin(q0, FALSE);
> return;
> }
nomad!acme% cd ../8½
nomad!8½% yesterday -d term.c
diff /n/dump/1999/0326/sys/src/cmd/8½/term.c term.c
690a691,695
> if(!w->mouseopen && ich[0]==0xCE){ /* pc up arrow */
> scrorigin(w, 1, w->f.maxlines/2);
> textdelete(&w->rawbuf, 0, 1);
> continue;
> }