<!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>
<DIV><FONT size=2>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).</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Mplayer display AVI on 2th virtual console (CTRL-ALT-F2) but
not switching on this (there are black screen).</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>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.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I inserted as above code for /dev/tty3 before exit()
instructon in mplayer.c . </FONT></DIV>
<DIV><FONT size=2>Mplayer returned to my program, but next call to Mplayer
destroied Xserver.<BR>It's very important for me.</FONT></DIV>
<DIV><FONT size=2>Thanks in advance.</FONT></DIV>
<DIV><FONT size=2>Zdzislaw Bialy</FONT></DIV>
<DIV><FONT size=2> </DIV></FONT></BODY></HTML>