replace(3) — Unix Programmer’s Manual
NAME
replace - overwrite existing display list commands with new ones
SYNOPSIS
C
replace(t, offst)
Tag t;
Offset offst;
FORTRAN
subroutine replac(t, offst)
integer t, offst
Pascal
procedure replace(t: Tag; offst: Offset);
DESCRIPTION
Replace combines the functions of insert and delete. It takes two arguments, a tag t and an offset offst. Graphics commands that follow replace overwrite existing commands until a closeobj, insert, delete, or replace command terminates the replacement. Replace requires the new command to be the same length as the one it replaces, which makes replacement operations fast. More general replacement can be done with the delete and insert commands. Replace is meant as a quick means of replacing a command with a version of itself containing different arguments.
SEE ALSO
closeobj, delete, editobj, insert
NOTE
This command can only be used in immediate mode.
Silicon Graphics — R1c