Seppo Mustonen : Programming Survo in C

Functions in library SURVO.LIB

shadow_create
Summary

int shadow_create(j)
int j;               /* edit line */
Description

The shadow_create function creates a shadow line consisting of ed1 spaces for the jth 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.

Return Value

shadow_create returns 1 if the shadow line has been created and -1 otherwise.

See Also

shadow_test

Example

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) */


Front page of Survo C libraries