version 1.1.1.2, 2000/01/22 14:16:29 |
version 1.1.1.3, 2003/09/15 07:09:39 |
|
|
/* |
/* |
* $Id$ |
* $Id$ |
* |
|
*/ |
*/ |
|
|
/* GNUPLOT - regis.trm */ |
/* GNUPLOT - regis.trm */ |
Line 56 register_term(regis) |
|
Line 55 register_term(regis) |
|
|
|
|
|
#ifdef TERM_PROTO |
#ifdef TERM_PROTO |
TERM_PUBLIC void REGISinit __PROTO((void)); |
TERM_PUBLIC void REGIS_init __PROTO((void)); |
TERM_PUBLIC void REGISgraphics __PROTO((void)); |
TERM_PUBLIC void REGIS_graphics __PROTO((void)); |
TERM_PUBLIC void REGISinit __PROTO((void)); |
TERM_PUBLIC void REGIS_init __PROTO((void)); |
TERM_PUBLIC void REGISgraphics __PROTO((void)); |
TERM_PUBLIC void REGIS_graphics __PROTO((void)); |
TERM_PUBLIC void REGIStext __PROTO((void)); |
TERM_PUBLIC void REGIS_text __PROTO((void)); |
TERM_PUBLIC void REGISlinetype __PROTO((int linetype)); |
TERM_PUBLIC void REGIS_linetype __PROTO((int linetype)); |
TERM_PUBLIC void REGISmove __PROTO((unsigned int x, unsigned int y)); |
TERM_PUBLIC void REGIS_move __PROTO((unsigned int x, unsigned int y)); |
TERM_PUBLIC void REGISvector __PROTO((unsigned int x, unsigned int y)); |
TERM_PUBLIC void REGIS_vector __PROTO((unsigned int x, unsigned int y)); |
TERM_PUBLIC void REGISput_text __PROTO((unsigned int x, unsigned int y, char *str)); |
TERM_PUBLIC void REGIS_put_text __PROTO((unsigned int x, unsigned int y, char *str)); |
TERM_PUBLIC int REGIStext_angle __PROTO((int ang)); |
TERM_PUBLIC int REGIS_text_angle __PROTO((int ang)); |
TERM_PUBLIC void REGISreset __PROTO((void)); |
TERM_PUBLIC void REGIS_reset __PROTO((void)); |
TERM_PUBLIC void REGISoptions __PROTO((void)); |
TERM_PUBLIC void REGIS_options __PROTO((void)); |
|
|
#define REGISXMAX 800 |
#define REGISXMAX 800 |
#define REGISYMAX 440 |
#define REGISYMAX 440 |
Line 95 static int REGIS16color = FALSE; |
|
Line 94 static int REGIS16color = FALSE; |
|
|
|
static int REGISang = 0; |
static int REGISang = 0; |
|
|
TERM_PUBLIC void REGISinit() |
TERM_PUBLIC void |
|
REGIS_init() |
{ |
{ |
fputs("\033[r\033[24;1H", gpoutfile); |
fputs("\033[r\033[24;1H", gpoutfile); |
/* 1 2 |
/* 1 2 |
Line 106 TERM_PUBLIC void REGISinit() |
|
Line 106 TERM_PUBLIC void REGISinit() |
|
|
|
|
|
/* thanks to calmasd!dko (Dan O'Neill) for adding S(E) for vt125s */ |
/* thanks to calmasd!dko (Dan O'Neill) for adding S(E) for vt125s */ |
TERM_PUBLIC void REGISgraphics() |
TERM_PUBLIC void |
|
REGIS_graphics() |
{ |
{ |
fputs("\033[2J\033P1pS(C0)S(E)T(A0)\n", gpoutfile); |
fputs("\033[2J\033P1pS(C0)S(E)T(A0)\n", gpoutfile); |
/* 1 2 3 4 5 |
/* 1 2 3 4 5 |
Line 116 TERM_PUBLIC void REGISgraphics() |
|
Line 117 TERM_PUBLIC void REGISgraphics() |
|
* 4. clear graphics screen |
* 4. clear graphics screen |
* 5. character set option. |
* 5. character set option. |
*/ |
*/ |
(void) REGIStext_angle(0); /* select text size and angle */ |
(void) REGIS_text_angle(0); /* select text size and angle */ |
} |
} |
|
|
|
|
TERM_PUBLIC void REGIStext() |
TERM_PUBLIC void |
|
REGIS_text() |
{ |
{ |
fputs("\033\\\033[24;1H", gpoutfile); |
fputs("\033\\\033[24;1H", gpoutfile); |
/* 1 2 |
/* 1 2 |
Line 130 TERM_PUBLIC void REGIStext() |
|
Line 132 TERM_PUBLIC void REGIStext() |
|
} |
} |
|
|
|
|
TERM_PUBLIC void REGISlinetype(linetype) |
TERM_PUBLIC void |
|
REGIS_linetype(linetype) |
int linetype; |
int linetype; |
{ |
{ |
/* This will change color in order G,R,B,G-dot,R-dot,B-dot */ |
/* This will change color in order G,R,B,G-dot,R-dot,B-dot */ |
|
|
** NGB 9/13/93 |
** NGB 9/13/93 |
*/ |
*/ |
|
|
TERM_PUBLIC void REGISmove(x, y) |
TERM_PUBLIC void |
|
REGIS_move(x, y) |
unsigned int x, y; |
unsigned int x, y; |
{ |
{ |
fprintf(gpoutfile, "P[%d,%d]\n", x, REGISYLAST - y); |
fprintf(gpoutfile, "P[%d,%d]\n", x, REGISYLAST - y); |
} |
} |
|
|
|
|
TERM_PUBLIC void REGISvector(x, y) |
TERM_PUBLIC void |
|
REGIS_vector(x, y) |
unsigned int x, y; |
unsigned int x, y; |
{ |
{ |
fprintf(gpoutfile, "v[]v[%d,%d]\n", x, REGISYLAST - y); |
fprintf(gpoutfile, "v[]v[%d,%d]\n", x, REGISYLAST - y); |
Line 181 unsigned int x, y; |
|
Line 186 unsigned int x, y; |
|
|
|
|
|
/* put_text and text_angle by rjl */ |
/* put_text and text_angle by rjl */ |
TERM_PUBLIC void REGISput_text(x, y, str) |
TERM_PUBLIC void |
|
REGIS_put_text(x, y, str) |
unsigned int x, y; |
unsigned int x, y; |
char *str; |
char *str; |
{ |
{ |
if (REGISang == 1) |
if (REGISang == 1) |
REGISmove(x - REGISVCHAR / 2 - 1, y); |
REGIS_move(x - REGISVCHAR / 2 - 1, y); |
else |
else |
REGISmove(x, y + REGISVCHAR / 2 - 1); |
REGIS_move(x, y + REGISVCHAR / 2 - 1); |
(void) putc('T', gpoutfile); |
(void) putc('T', gpoutfile); |
(void) putc('\'', gpoutfile); |
(void) putc('\'', gpoutfile); |
while (*str) { |
while (*str) { |
|
|
} |
} |
|
|
|
|
TERM_PUBLIC int REGIStext_angle(ang) |
TERM_PUBLIC int |
|
REGIS_text_angle(ang) |
int ang; |
int ang; |
{ |
{ |
REGISang = ang; |
REGISang = ang; |
|
|
} |
} |
|
|
|
|
TERM_PUBLIC void REGISreset() |
TERM_PUBLIC void |
|
REGIS_reset() |
{ |
{ |
fputs("\033[2J\033[24;1H", gpoutfile); |
fputs("\033[2J\033[24;1H", gpoutfile); |
} |
} |
|
|
TERM_PUBLIC void REGISoptions() |
TERM_PUBLIC void |
|
REGIS_options() |
{ |
{ |
int i = 0; |
int i = 0; |
struct value a; |
struct value a; |
Line 238 TERM_PUBLIC void REGISoptions() |
|
Line 247 TERM_PUBLIC void REGISoptions() |
|
TERM_TABLE_START(regis_driver) |
TERM_TABLE_START(regis_driver) |
"regis", "REGIS graphics language", |
"regis", "REGIS graphics language", |
REGISXMAX, REGISYMAX, REGISVCHAR, REGISHCHAR, |
REGISXMAX, REGISYMAX, REGISVCHAR, REGISHCHAR, |
REGISVTIC, REGISHTIC, REGISoptions, REGISinit, REGISreset, |
REGISVTIC, REGISHTIC, REGIS_options, REGIS_init, REGIS_reset, |
REGIStext, null_scale, REGISgraphics, REGISmove, REGISvector, |
REGIS_text, null_scale, REGIS_graphics, REGIS_move, REGIS_vector, |
REGISlinetype, REGISput_text, REGIStext_angle, |
REGIS_linetype, REGIS_put_text, REGIS_text_angle, |
null_justify_text, line_and_point, do_arrow, set_font_null |
null_justify_text, line_and_point, do_arrow, set_font_null |
TERM_TABLE_END(regis_driver) |
TERM_TABLE_END(regis_driver) |
|
|