draw graphics to stdout in solaris


 
Thread Tools Search this Thread
Operating Systems Solaris draw graphics to stdout in solaris
# 1  
Old 02-04-2009
draw graphics to stdout in solaris

Hi all..
I am trying to draw a line on the monitor on sun platform machine. I tried a simple program.

#include<stdio.h>
#include<plot.h>

int main()
{
openpl();
linemod("dotted");
line(1000,1000,2000,2000);
closepl();
return 0;
}

It doesn't produce the desired result.

If one knows how to draw a line on the monitor on sun platform, please guide me.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

SMF in Solaris wont write to stderr/stdout ?

Hi, I got a process (c written) that we usually run this way : EmsChkQu >> /EMS/log/EmsChkQu.log 2>&1 When trying to use it as a service I defined it this way : <?xml version='1.0'?> <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> <service_bundle... (6 Replies)
Discussion started by: zionassedo
6 Replies

2. Programming

Draw multicolor line

Hello. I need to draw many lines with multicolor (color is set by some pixmap (xpm)) on C++ with standart libs. Horizontal lines are drawing succsessfully with GC and XSetTile. But non-horizontal - no good. I rotate pixmap for all lines and then XSetTile for each line with own pixmap, but it's... (1 Reply)
Discussion started by: Yuriy
1 Replies

3. Solaris

Solaris latest CPU patch graphics/gui issue

We just installed the latest Oracle Solaris 10 Sparc 64-Bit CPU patch (10/2012) and we are no longer able to access the GUI or the console after the OBP. We believe that this is a graphics issue. It has affected out t2000 xvr-200 graphics server and also out v440 xvr-100 graphics server. We are... (2 Replies)
Discussion started by: topper24501
2 Replies

4. OS X (Apple)

[Solved] links2 --enable-graphics from source, configure error: no graphics driver found.

Howdy I am trying to install links2 with graphics support on snow leopard 10.6.8 (xcode installed). I have had the program running last year, also installed from source - but then I had installed some image libraries with mac ports and fink - cannot reproduce that setup. Plus I would like to not... (6 Replies)
Discussion started by: butterbaerchen
6 Replies

5. What is on Your Mind?

Do you draw flowcharts

Do you draw flowcharts while you do the programming , design new network or simmilar ? (8 Replies)
Discussion started by: solaris_user
8 Replies

6. Solaris

Graphics problem in solaris 10

Hi, I have installed solaris 10/09 release in dell gx 520 desktop, it doesn't support graphics, i installed through text mode, can anyone tell how to get graphics on dell gx520 (1 Reply)
Discussion started by: rajasekg
1 Replies

7. Programming

Draw a 3D cylinder using openGL.

Hi, please give me, how to code to draw 3D cylinder in openGL, that should be rotated in x-direction. waiting for your reply .. (2 Replies)
Discussion started by: Ravikishore
2 Replies

8. Ubuntu

How to draw cylinder using openGL

Hi Sir, i am new to openGL, i want to know how to draw cylinder using openGL code in C or C++.. And i have to insert bitmap images on cylinder.. How to do this .. please guide me ... Thanking You in advance .. (0 Replies)
Discussion started by: Ravikishore
0 Replies

9. UNIX for Dummies Questions & Answers

3d graphics apps for unix/solaris

Hi, I noticed that SUN is selling the Blade 100 workstation for < 1000. I am considering buying one with a high end graphics card for 3D animation/graphics (and also some java development). I am wondering if any relatively inexpensive graphics applications exist for Unix/Solaris machines. Anybody... (4 Replies)
Discussion started by: eqpfunk
4 Replies
Login or Register to Ask a Question
plot(3x)																  plot(3x)

Name
       openpl, erase, label, line, circle, arc, move, cont, point, linemod, space, closepl, box, color, dot - graphics interface

Syntax
       openpl()

       erase()

       label(s)
       char s[];

       line(x1, y1, x2, y2)

       circle(x, y, r)

       arc(x, y, x0, y0, x1, y1)

       move(x, y)

       cont(x, y)

       point(x, y)

       linemod(s)
       char s[];

       space(x0, y0, x1, y1)

       closepl()

       box(x0, x1, y0, y1)

       color(c)

       dot()

Description
       These  subroutines generate graphic output in a device-independent manner.  See for a description of their effect.  The subroutine precedes
       the other subroutines as it opens the device for writing.  The subroutine flushes the output. The and routines are used by  the	lvp16  and
       hp7475a plotters only.

       String arguments to and are null-terminated and do not contain newlines.

       Many of these functions have additional options for different output devices.  They are accessed by the options as follows:

       -lplot	     device-independent graphics stream on standard output for filters

       -lplotaed     AED 512 color graphics terminal

       -lplotbg      BBN bitgraph graphics terminal

       -lplotdumb    dumb terminals without cursor addressing or line printers

       -lplotgigi    gigi graphics terminal

       -lplotgrn     grn files

       -lplot2648    HP 2648 graphics terminal

       -lplot7221    HP 7221 graphics terminal

       -lplotimagen  Imagen laser printer (default 240 DPI resolution)

       -l300	     GSI 300 terminal

       -l300s	     GSI 300S terminal

       -l450	     DASI 450 terminal

       -l4013	     Tektronix 4013 terminal

       -l4014	     Tektronix 4014 terminal

       -llvp16	     DEC LVP16 and HP7475A plotters

See Also
       graph(1g), plot(1g), plot(5)

																	  plot(3x)