Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF

24 SunCGl Reference Manual 0 #include Ccoor box[SJ = { 10000,10000 , 10000,20000 I 20000,20000 t 20000,10000 t 10000, 10000 ) ; Cint name; extern ·cint redraw(); Cvwsurf device; main() { Ccoorlist boxlist; boxlist.n = 5; boxlist.ptlist = box; NORMAL_VWSURF(device, PIXWINDD); open_cgi () ; open_vws(&name, &device); set_up_sigwinch(name, redraw); polyline(&boxlist); sleep(lO); 0 close_vws(name); close_cgi () : Cint redraw () clear view_surface(name, ON, 0); Figure 2-3 Example Program with set_up_sigwinch Function ENOTOPOP [5] CGI not in proper state CGI shall be either in state CGOP, YSOP, or VSAC. Errors 2.4.

Interface Negotiation CGI is intended to support a 'negotiated device interface' which permits programs written on a specific type of hardware to run on other machines. SunCGI only allows inquiry of most of the settable modes. 4 For example the user may want to find out which types of input devices are supported. However, functions for set- ting color precision, coordinate type, specification mode, and color specification are not provided because SunCGI only supports one type of color precision (8- " The functions which are not suppo~ by SunCGI are classified as non~required by the March 1984 ANSI 0 co1 standard. See Appendix B. Version C of 17 March 1986