BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

keditfile - start up an edit program to edit an input file

LIBRARY CALL

int keditfile(
   char *filename,
   int  spawn,
   kvalist)

INPUT

OUTPUT

none

RETURN VALUE

none

DESCRIPTION

This routine executes a system call to the system editor. It uses the environment variable KHOROS_EDITOR to determine which system editor to use. If KEDITOR is not set then EDITOR will be checked. If neither of these environment variables are set then the routine will use 'vi' as the default.

Also if the DISPLAY environment variable is set then the editor will be executed within an xterm. The xterm and editor will be started in background and keditfile will return immediately. If not then the editor will be executed locally and will not return until the process finishes executing.

Also, options can be specified to keditfile. The following are a list of options:

KEDITOR_GEOMETRY - the geometry of the editor KEDITOR_TITLE - the editor title KEDITOR_FOREGROUND - the editor foreground color KEDITOR_BACKGROUND - the editor background color KEDITOR_ICON - the editor icon file KEDITOR_PID - the pid of the editor KEDITOR_CHDIR - change to file's directory

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/file.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.