TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Cromwell Hooper
from: William McBrine
date: 1999-01-21 03:36:22
subject: Re: Incest

-=> Cromwell Hooper wrote to All <=-

 CH> My specific short term goal is to spawn (?  maybe exec?) a 

Use system(), unless you have a real need for the others. The system()
function is a) easy to use, and b) ANSI.

 CH> text editor, pass on to it text data from the calling 
 CH> program, allow user to edit same, and return the edited 
 CH> text to the calling program.  I realise that this may prove 
 CH> different for each editor, but are there some general 
 CH> methods i can use?

The general method would be to write the text to a temporary file, and
call the editor with the filename as a parameter. That will work with
almost all editors, and in any environment; and it's simple to do.

 CH> Also, what would be the best format to pass such information?

Plain text.

... I'm leaving my body to science fiction.
--- MultiMail/Linux v0.23
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 634/397 635/506 728 639/252
SEEN-BY: 670/218
@PATH: 106/2000 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.