1 /* Hello, Emacs, this is -*-C-*-
2 * $Id: xlib.trm,v 1.20.2.2 2009/02/07 19:57:21 sfeam Exp $
5 /* GNUPLOT - xlib.trm */
8 * xlib.trm - inboard terminal driver for X11 (dumps gnuplot_x11 commands)
10 * New implementation November 2003
11 * Xlib_init() sets up the output channels, but otherwise all work is done
12 * by the main x11.trm driver routines.
13 * Ethan A Merritt <merritt@u.washington.edu>
23 TERM_PUBLIC void Xlib_init __PROTO((void));
24 TERM_PUBLIC void Xlib_text __PROTO((void));
25 TERM_PUBLIC void Xlib_reset __PROTO((void));
26 #define GOT_XLIB_PROTO
29 #ifndef TERM_PROTO_ONLY
35 /* x11.trm thinks it is writing to a private pipe, but here we */
36 /* set it to use the channel opened by 'set output <file>' */
40 /* There is, of course, no mouse feedback */
41 ipc_back_fd = IPC_BACK_UNUSABLE;
51 ipc_back_fd = IPC_BACK_UNUSABLE;
65 TERM_TABLE_START(xlib_driver)
66 "xlib", "X11 Window System (gnulib_x11 dump)",
67 X11_XMAX, X11_YMAX, X11_VCHAR, X11_HCHAR,
68 X11_VTIC, X11_HTIC, X11_options, Xlib_init, Xlib_reset,
69 Xlib_text, null_scale, X11_graphics, X11_move, X11_vector,
70 X11_linetype, X11_put_text, X11_text_angle,
71 X11_justify_text, X11_point, do_arrow, X11_set_font,
72 X11_pointsize, TERM_CAN_MULTIPLOT|TERM_INIT_ON_REPLOT,
73 X11_text /* suspend can use same routine */ , 0 /* resume */ ,
74 X11_fillbox, X11_linewidth
76 , X11_waitforinput, X11_put_tmptext, X11_set_ruler, X11_set_cursor, X11_set_clipboard
78 , X11_make_palette, 0 /* X11_previous_palette */ ,
79 X11_set_color, X11_filled_polygon
83 , ENHX11_OPEN, ENHX11_FLUSH, do_enh_writec
84 TERM_TABLE_END(xlib_driver)
87 #define LAST_TERM xlib_driver
89 #endif /* TERM_TABLE */
90 #endif /* TERM_PROTO_ONLY */
95 "?commands set terminal xlib",
101 " The `xlib` terminal driver supports the X11 Windows System. It generates",
102 " gnuplot_x11 commands, but sends them to the output file specified by",
103 " `set output '<filename>'`. `set term x11` is equivalent to",
104 " `set output \"|gnuplot_x11 -noevents\"; set term xlib.`",
105 " `xlib` takes the same set of options as `x11`."