Sponsored Content
Top Forums Shell Programming and Scripting Launching mplayer from within Links2 using a shell script Post 303025225 by Corona688 on Sunday 28th of October 2018 01:45:56 PM
Old 10-28-2018
SDL is a go-between library which supports a lot of different backends, so it's not that helpful to know you're using SDL. I'm guessing SDL is ultimately using raw framebuffer or something like it here. If you can tell me what exact graphics module SDL is using internally that'd be great, I can look that up and find out if it has any relevant options.

Are you saying chvt doesn't work in links? Or doesn't work in mplayer? Or both?

does chvt work when you run mplayer manually, as opposed to links running it?

mplayer and links should probably be in different virtual terminals. Without a WM, graphics can't really share.

Either way it'll be a kludge, either to shoehorn some sideband input into mplayer, or to push it onto a different terminal and switch your terminal to it.

Last edited by Corona688; 10-28-2018 at 02:57 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Launching a new bash shell

I'm new to programming on unix and have a really simple question (google hasn't been my friend today). I have a bash shell running on a remote machine. I'm looking at it from a windows PC using Exceed. Is there a command I can use from the shell which will launch another bash shell? Thanks! (3 Replies)
Discussion started by: gsd
3 Replies

2. Shell Programming and Scripting

Launching Several Shells....

Hi, I need to create a shell that launches several shells named for example svspush (that does nothing but wait) and record their pid in a file. Any inputs please. Thanks, Marconi (1 Reply)
Discussion started by: marconi
1 Replies

3. UNIX for Dummies Questions & Answers

launching script via REXEC

Hi folks! my client uses an winapplication which is launching shell-scripts remotely on a HP-Unix Machine via Rexec. The application-configuration is launching the script (which is in the home directory of connecting user) like: rexec host user pass shell.sh So far so good, everything... (3 Replies)
Discussion started by: JohnMurdoch
3 Replies

4. Shell Programming and Scripting

Launching a C program that needs input from a shell script

hi there, i need some help, i am trying to run a script to launch a C program and a Java program but before running both I want to get a user input and then invoke both programs with input received. In the programs the inputs are not command line arguments. This is the code, after the java... (4 Replies)
Discussion started by: momal
4 Replies

5. Shell Programming and Scripting

Launching shell scripts from different dirs

Hi, General question, if I have a shell script whcih I launch from anywhere on the system vis the PATH env var, how can I get the script to echo where I launch this from? i.e. /my/home/script/myscript BUT I launch this from /my/otherarea/somewherelse via the env variable. I would... (1 Reply)
Discussion started by: cyberfrog
1 Replies

6. Shell Programming and Scripting

Launching shell from another

hi, I have shell script ( say A.sh) that launches another shell script ( say B.sh) on the server. In shell script A.sh, if i call B.sh as . B.sh <-- it doesnt work, err file not found . ./B.sh <-- it doesnt work, err file not found ./B.sh <-- works why so? BTW the file exists at the... (4 Replies)
Discussion started by: sjc
4 Replies

7. 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

8. Red Hat

Help in launching firefox.

Hi, -- I am new to linux, please bear with my tech terms. I am using Red Hat 4.1.2-48 (Linux version 2.6.18-194.11.1.el5) for the project. This is a remote server and I do not use any GUI. Now I need to install a product that requires me to launch firefox from linux. when i am trying... (3 Replies)
Discussion started by: vj8436
3 Replies

9. UNIX for Advanced & Expert Users

[Solved] Crontab not launching script

Hi all, i have the following script #!/bin/sh for i in `ps -leaf --cols 1024 | grep LogUser | grep -v grep | awk '{print $4}'`; do echo $i kill -15 $i; done; but it seems that the crontab its sciping this script,i configured corntab as following */30 * * * root... (2 Replies)
Discussion started by: charli1
2 Replies

10. Shell Programming and Scripting

Statement returning error only launching the sh script via crontab

hi all, I created a sh script to import some tables from mysql to hive. No problem launching it manually, but if I schedule via crontab it returns me an error in the following part: #create an array containing all the tables for $dbname query="SELECT table_name FROM information_schema.tables'... (10 Replies)
Discussion started by: mfran2002
10 Replies
pods::SDL::Tutorial(3pm)				User Contributed Perl Documentation				  pods::SDL::Tutorial(3pm)

NAME
SDL::Tutorial - introduction to Perl SDL CATEGORY Tutorials SYNOPSIS
# to read this tutorial $ perldoc SDL::Tutorial # to run this tutorial $ perl -MSDL::Tutorial -e 1 SDL Manual "SDL::Tutorial" are incomplete and old. A new book has been started to provide a complete tutorial for SDL. See <http://bit.ly/hvxc9V>. SDL BASICS
SDL, the Simple DirectMedia Layer, is a cross-platform multimedia library. These are the Perl 5 bindings. You can find out more about SDL at <http://www.libsdl.org/>. You can find out more about SDL perl at <http://sdl.perl.org>. Creating an SDL application with Perl is easy. You have to know a few basics, though. Here's how to get up and running as quickly as possible. Surfaces All graphics in SDL live on a surface. You'll need at least one. That's what SDLx::App provides. Of course, before you can get a surface, you need to initialize your video mode. SDL gives you several options, including whether to run in a window or take over the full screen, the size of the window, the bit depth of your colors, and whether to use hardware acceleration. For now, we'll build something really simple. Initialization SDLx::App makes it easy to initialize video and create a surface. Here's how to ask for a windowed surface with 640x480x16 resolution: use SDLx::App; my $app = SDLx::App->new( width => 640, height => 480, depth => 16, ); You can get more creative, especially if you use the "title" and "icon" attributes in a windowed application. Here's how to set the window title of the application to "My SDL Program": use SDLx::App; my $app = SDLx::App->new( height => 640, width => 480, depth => 16, title => 'My SDL Program', ); Setting an icon is a little more involved -- you have to load an image onto a surface. That's a bit more complicated, but see the "name" parameter to "SDL::Surface-"new()> if you want to skip ahead. Working With The App Since $app from the code above is just an SDL surface with some extra sugar, it behaves much like SDL::Surface. In particular, the all- important "blit" and "update" methods work. You'll need to create SDL::Rect objects representing sources of graphics to draw onto the $app's surface, "blit" them there, then "update" the $app. Note: "blitting" is copying a chunk of memory from one place to another. That, however, is another tutorial. SEE ALSO
SDL::Tutorial::Animation basic rectangle drawing and animation SDL::Tutorial::LunarLander basic image loading and animation AUTHORS
chromatic, <chromatic@wgz.org>. Written for and maintained by the Perl SDL project, <http://sdl.perl.org/>. See "AUTHORS" in SDL for details. COPYRIGHT
Copyright (c) 2003 - 2004, chromatic. 2009 - 2010, kthakore. All rights reserved. This module is distributed under the same terms as Perl itself, in the hope that it is useful but certainly under no guarantee. perl v5.14.2 2012-05-28 pods::SDL::Tutorial(3pm)
All times are GMT -4. The time now is 01:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy