News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
FLTK and ffmpeg
Author Message
Juergen
Member
***


Posts: 81
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
RE: FLTK and ffmpeg

mikshaw Wrote:
That's pretty cool.
I did a test with urxvt, and was suprised how simple it was.
Unfortunately, I have yet to find a reliable way to close both the terminal and the container window...so far i'm using if os.execute("killall urxvt")==0 then os.exit() end, but that's far from ideal. There doesn't seem to be a way to get the pid for that particular instance of urxvt from Lua.

Without proper suppoert for the posix API either through the posix module or alien every solution would be a hack.
But there is one thing you could do (also a hack):

Code:
pidpipe=io.popen("urxvt -embed "..fltk.fl_xid(...).."..... >/dev/null & echo $!","r")
urxvtpid=pidpipe:read("*l")
pidpipe:close()
pidpipe=nil
os.execute("kill "..pid)


I didn't test it, but it should work.

Juergen

04-08-2008 03:44 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
FLTK and ffmpeg - dvw86 - 04-06-2008, 04:25 AM
RE: FLTK and ffmpeg - mikshaw - 04-06-2008, 11:21 AM
RE: FLTK and ffmpeg - Juergen - 04-07-2008, 01:06 AM
RE: FLTK and ffmpeg - dvw86 - 04-07-2008, 02:31 AM
RE: FLTK and ffmpeg - Juergen - 04-07-2008, 03:13 AM
RE: FLTK and ffmpeg - mikshaw - 04-08-2008, 12:20 AM
RE: FLTK and ffmpeg - dvw86 - 04-08-2008, 02:33 AM
RE: FLTK and ffmpeg - Juergen - 04-08-2008, 03:27 AM
RE: FLTK and ffmpeg - Juergen - 04-08-2008 03:44 AM
RE: FLTK and ffmpeg - mikshaw - 04-08-2008, 04:38 AM
RE: FLTK and ffmpeg - dvw86 - 04-08-2008, 09:30 AM
RE: FLTK and ffmpeg - Juergen - 04-08-2008, 11:01 PM
RE: FLTK and ffmpeg - Juergen - 04-08-2008, 11:18 PM
RE: FLTK and ffmpeg - JohnMurga - 04-09-2008, 07:25 AM
RE: FLTK and ffmpeg - JohnMurga - 04-10-2008, 06:53 AM
RE: FLTK and ffmpeg - Juergen - 04-10-2008, 07:39 AM
RE: FLTK and ffmpeg - JohnMurga - 04-12-2008, 05:01 AM
RE: FLTK and ffmpeg - JohnMurga - 04-10-2008, 10:48 PM
RE: FLTK and ffmpeg - dvw86 - 04-11-2008, 04:32 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: