<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff><FONT size=2>
<DIV><BR>Please help me,<BR>I run my program with SVGALIB under X from xterm. It
runs on 3th virtual console (CTRL-ALT-F3). <BR>Then I call Mplayer using
command: <BR> sytem("mplayer -vo x11 -fs xxx.avi
>/dev/null\n")<BR>(my program is in Text mode).</DIV>
<DIV> </DIV>
<DIV>Mplayer display AVI on 2th virtual console (CTRL-ALT-F2) but not switching
on this (there are black screen).</DIV>
<DIV> </DIV>
<DIV>I inserted code to mplayer.c for switch to virt.cons.2:<BR> if
((fd=open("/dev/tty2",O_RDWR))>0)<BR>
{aa=ioctl(fd,VT_ACTIVATE,2); <BR> } <BR>and it's works
but after playing (or aborting) there are virt.cons. 2 on the screen. I must
press CTRL-ALT-F3 to return my program.</DIV>
<DIV> </DIV>
<DIV>I inserted as above code for /dev/tty3 before exit() instructon in
mplayer.c . <BR>Mplayer returned to my program, but next call to Mplayer
destroied Xserver.<BR>It's very important for me.<BR>Thanks in
advance.<BR>Zdzislaw Bialy<BR></FONT></DIV></BODY></HTML>