#22 linuxvga output problem

open
nobody
None
5
2005-06-06
2005-06-06
danger
No

I am attempting to use plplot in order to display an 128
point fft graph to a linux user. When my application
initially runs through the graph code, the output is seen
on /dev/tty1. Then, every subsequent time I call the
exact same code, it outputs to /dev/tty4. I am only
spinning off tty2 and tty3 with inittab, and my
application communicates via tty1.

I looked through the documentation, and then the
source, but I'm still a little lost as to where/how plplot
decides where to point the output via the linuxvga driver.

Any help is very much appreciated.

Basic code:

int i;

plsdev(linuxvga);
plinit();
plcol0(2);
plfont(2);

plenv(-64.0, 64.0, -100.0, 0.0, 0, -2);

plbox("bcfint", 10, 0, "bcfgintv", 10, 0);

pllab("blabel", "vlabel", "tlabel");

for(i=-64;i<64;i++)
{
pljoin(i,-100.0,i,-50);
}

plend();

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks