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
plot: openpl, erase, label, line, circle, arc, move, cont, point, linemod, space, closepl - graphics interface SYNOPSIS
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() DESCRIPTION
These subroutines generate graphic output in a relatively device-independent manner. See plot(5) for a description of their effect. Openpl must be used before any of the others to open the device for writing. Closepl flushes the output. String arguments to label and linemod are null-terminated, and do not contain newlines. Various flavors of these functions exist for different output devices. They are obtained by the following ld(1) options: -lplot device-independent graphics stream on standard output for plot(1) filters -l300 GSI 300 terminal -l300s GSI 300S terminal -l450 GSI 450 terminal -l4013 Tektronix 4013 terminal -l4014 Tektronix 4014 and 4015 terminals with the Enhanced Graphics Module (Use -l4013 for 4014's or 4015's without the Enhanced Graphics Module) -lplotaed AED 512 color graphics terminal -lplotbg BBN bitgraph graphics terminal -lplotdumb Dumb terminals without cursor addressing or line printers -lplot DEC Gigi terminals -lvt0 DEC vt100 terminals -lplot2648 Hewlett Packard 2648 graphics terminal -lplot7221 Hewlett Packard 7221 graphics terminal -lplotimagen Imagen laser printer (default 240 dots-per-inch resolution). On many devices, it is necessary to pause after erase(), otherwise plotting commands are lost. The pause is normally done by the tty driver if at login time, tset found a df field in the termcap(5) entry for the terminal. If a pause is needed but not automatically being generated, add flush(stdout); sleep(1); after each erase(). SEE ALSO
plot(5), plot(1G), plot(3F), graph(1G) 7th Edition May 15, 1986 PLOT(3X)