From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 27 Mar 1999 01:39:30 -0500 From: rsc@research.att.com rsc@research.att.com Subject: [9fans] up arrow in acme, 8½ Topicbox-Message-UUID: 94097a30-eac8-11e9-9e20-41e7f4b1d025 Content-Type: text/plain; charset=UTF-8 Message-ID: <19990327063930.gBVo89WzWDVkClMjkHLxalo6Rl0-Q8uUdAl-pCs84Jc@z> 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; > }