int shadow_create(j)
int j; /* edit line */
The shadow_create function creates a shadow line consisting of ed1
spaces for the j
th line (1<=j
<=ed2) in the edit field. After the
shadow_create call zs[j]
is the index of the new shadow line.
If there is no more space for a new shadow line (edshad is the max.number), an error message Not space anymore for special display lines! is displayed.
shadow_create returns 1 if the shadow line has been created and -1 otherwise.
char x[LLENGTH];
int i;
for (i=0; i<c2; ++i) x[i]='7';
if (zs[10]==0)
{
i=shadow_create(10);
if (i<0) return;
}
edwrite(x,zs[10],1);
/* turns all characters on edit line 10
into reversed video (shadow value 7) */