home *** CD-ROM | disk | FTP | other *** search
- #define HP75_XMAX 6000
- #define HP75_YMAX 6000
-
- #define HP75_XLAST (HP75_XMAX - 1)
- #define HP75_YLAST (HP75_XMAX - 1)
-
- /* HP75_VCHAR, HP75_HCHAR are not used */
- #define HP75_VCHAR (HP75_YMAX/20)
- #define HP75_HCHAR (HP75_XMAX/20)
- #define HP75_VTIC (HP75_YMAX/70)
- #define HP75_HTIC (HP75_XMAX/75)
-
- HP75_init()
- {
- fprintf(outfile,
- "IN;\033.P1:SC0,%d,0,%d;\n;IP;SI0.2137,0.2812;\n",
- HP75_XMAX,HP75_YMAX);
- /* 1 2 3 4 5 6 7
- 1. turn on eavesdropping
- 2. reset to power-up defaults
- 3. enable XON/XOFF flow control
- 4. set SCaling to 2000 x 2000
- 5. rotate page 90 degrees
- 6. ???
- 7. set some character set stuff
- */
- }
-
-
- HP75_graphics()
- {
- /* 1
- fputs("\033.Y",outfile);
- 1. enable eavesdropping
- */
- }
-
-
- HP75_text()
- {
- fputs("NR;\033.Z",outfile);
- /* 1 2
- 1. go into 'view' mode
- 2. disable plotter eavesdropping
- */
- }
-
-
- HP75_linetype(linetype)
- int linetype;
- {
- fprintf(outfile,"SP%d;\n",(linetype+3)%8);
- }
-
-
- HP75_move(x,y)
- int x,y;
- {
- fprintf(outfile,"PU%d,%d;\n",x,y);
- }
-
-
- HP75_vector(x,y)
- int x,y;
- {
- fprintf(outfile,"PD%d,%d;\n",x,y);
- }
-
-
- HP75_lrput_text(row,str)
- int row;
- char str[];
- {
- HP75_move(HP75_XMAX-HP75_HTIC*2,HP75_VTIC*2+HP75_VCHAR*row);
- fprintf(outfile,"LO17;LB%s\003\n",str);
- }
-
- HP75_ulput_text(row,str)
- int row;
- char str[];
- {
- HP75_move(HP75_HTIC*2,HP75_YMAX-HP75_VTIC*2-HP75_VCHAR*row);
- fprintf(outfile,"LO13;LB%s\003\n",str);
- }
-
- HP75_reset()
- {
- }
-
-
-