Segment specified by nseg is deleted from the display file
= 0,
The dustbin segment
= GALL,
All segments are deleted
< -1,
All segments except those specified by nseg are deleted from the display file
Description
The routine gDeleteSeg() is called to delete a picture segment.
It deletes the specified segment from the display file, which may involve redrawing the segment in the background colour in order to remove it from the device. If gDeleteSeg() is called while segment nseg is open, then a call to gCloseSeg() is automatically executed.
If gDeleteSeg(GALL) is called and segment 1 exists then it is deleted.
If gDeleteSeg(0) is called, the screen is cleared and any existing picture segments are redisplayed.
If nseg specifies a segment group, then all the members of that group are deleted.