9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] up arrow in acme, 8½
@ 1999-03-27  6:39 rsc
  0 siblings, 0 replies; only message in thread
From: rsc @ 1999-03-27  6:39 UTC (permalink / raw)


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;
> 		}




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-03-27  6:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-27  6:39 [9fans] up arrow in acme, 8½ rsc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).