You are not logged in.

#1 2009-08-28 16:27:13

papounet
Member
Registered: 2009-06-14
Posts: 22

[SOLVED] Fire up a terminal with curses program running in it

I have written a curse program (actually a bookmark manager for uzbl :-).

Now I want to start it from another GUI program, a launcher etc... But since it is interactive merely making it executable and calling it doesn't work (it would be executed in a SHELL in the background).

I have read the xterm man page to no avail and google was of no help.

Is there a way to have an xterm pop up with my program running in it that will also close when the program terminates??

Cheers

Last edited by papounet (2009-08-28 16:50:59)

Offline

#2 2009-08-28 16:44:45

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: [SOLVED] Fire up a terminal with curses program running in it

This works for me.  Closes on exit and all.

man xterm wrote:

-e program [ arguments ... ]
               This option specifies the program (and its command line arguments) to be run in the xterm window.  It also sets the window title and icon name to be the  basename  of
               the program being executed if neither -T nor -n are given on the command line.  This must be the last option on the command line.

Last edited by rson451 (2009-08-28 16:46:46)


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#3 2009-08-28 16:51:44

papounet
Member
Registered: 2009-06-14
Posts: 22

Re: [SOLVED] Fire up a terminal with curses program running in it

thanks a lot. There are so many options to xterm I must have overlooked it.

Offline

Board footer

Powered by FluxBB