[Tutor] curses on linux

lonetwin lonetwin@yahoo.com
Thu Jun 26 03:08:03 2003


Hi Michael,
     Thanks for your reply, but ...

> I can't say, how to switch between applications (after going to "links" -
> wouldn't be it the problem of the links programm to switch back?). Just go
> to another app and exit and are back in orig app can be done with
> os.system().
     That's the problem, I do not the external app. to exit. Links is a text 
mode browser, I want to have links alive in the background or at least save 
the state of links when I switch to my app, so that when I return from my 
app, links is at the same page as it was before. Also os.system() just 
executes a new process and returns when that process is done. The only way to 
communicate from the parent process to the child is thru' the arguments 
passed when os.system is called (or thru' environment variables) and the only 
way for the child process to communicate with the parent is by a return code.
    There is no 'runtime' communication between the processes. I need to 
achieve at least that if I can't switch between the apps.
   Basically I need pipe() between 2 curses applications.

      Like I said in my earlier mail, right now, the closest I have got to 
doing that is by using the 'pty' module (the pty.spawn() function 
specifically). I don't really like that tho'. I was hoping there was a way to 
do that using just ncurses.

    Ah, well ...I'll keep researching. Thanx for your reply anyways.

Peace
Steve
-- 
panic ("Splunge!");
	2.2.16 /usr/src/linux/drivers/scsi/psi240i.c