#include "ded.h" #include "char.h" #include "ter.h" /************************************************************************ * * * copyright Richard Bornat 1981 * * * ************************************************************************/ /************************************************************************ * * * case 0 - no hardware except rollup * * * ************************************************************************/ scr0_up(r1,r2,line) register int r1, r2; char *line; { /* only strategy - scrolldown(0:r1), rollup, scrolldown(r2:FOOT) */ if (line==0) /* just report cost */ return(1+scrolldown(0,r1,(char *)0)+scrolldown(r2+1,FOOTROW,(char *)0)); else /* do it */ { if (r1!=0) scrolldown(0, r1, ""); rollup(); scrolldown(r2, FOOTROW, line); return; } } /* ARGSUSED */ scr0_down(r1,r2,line) register int r1, r2; char *line; { if (line!=0) editerror("scr0_down called in earnest"); return(32767); /* as large as possible */ }