In computer graphics programs, a two-way communication protocol between the program and any device drivers in the system. CGI communicates directly with these device drivers to control the output of computer graphics. CGI is usually found in device-independent graphics programs.